From 4ad539fda8f261c055728c3487bd27c2e8dd60d2 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Jun 2006 14:11:36 +0000 Subject: [PATCH] * Added volatile keyword to prevent gcc from optimising away. git-svn-id: svn://svn.zoy.org/elk/trunk@264 55e467fa-43c5-0310-a8a2-de718669efc6 --- src/libelk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libelk.c b/src/libelk.c index 10e869d..3b33e38 100644 --- a/src/libelk.c +++ b/src/libelk.c @@ -176,7 +176,7 @@ void Elk_Init (int ac, char **av, int init_objects, char *toplevel) { #if defined(CAN_DUMP) # define foo (av[0][0]) #else - char foo; + volatile char foo; #endif #ifdef CAN_DUMP