summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBradley Smith2009-11-18 18:26:22 +0000
committerBradley Smith2009-11-18 18:26:22 +0000
commit87db946618bbf20efac2ecf5ba6f223e0cee8d8d (patch)
treec2ee4e3562305c790fba0c9ec2937d8646c9fe56 /src/main.c
parentChange email address for Jim Hall, upon request. (diff)
downloadgnurobots-87db946618bbf20efac2ecf5ba6f223e0cee8d8d.tar.gz
Fix issues when compiling with optimisations.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 71a0fe6..ece7cbc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -282,6 +282,7 @@ void main_prog(void *closure, gint argc, gchar *argv[])
gchar *map_file = argv[1];
gchar *robot_program = argv[2];
gboolean loading = TRUE;
+ volatile gboolean *ploading = &loading;
api_init();
@@ -304,7 +305,7 @@ void main_prog(void *closure, gint argc, gchar *argv[])
G_ROBOT_POSITION_X(robot), ROBOT);
g_printf("Loading GTK Interface ... Please wait\n\n");
- while(loading);
+ while(*ploading);
/* Now initialize the rest of the Robot properties */
g_object_set(G_OBJECT(robot),