From 371d4c3202de9fa52ab0ffd0a5726a18e0479a12 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Fri, 7 Mar 2008 18:46:31 +0000 Subject: Add -pedantic-errors and -Werror flags to compile, and fix code to comply. Signed-off-by: Bradley Smith --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 8c2d683..0359ba3 100644 --- a/src/main.c +++ b/src/main.c @@ -54,7 +54,7 @@ /* Globals (share with api.c) */ GList *robots = NULL; -GRobot *robot = NULL; // The current robot +GRobot *robot = NULL; /* The current robot */ UserInterface *ui; Map *map; GModule *plugin; @@ -500,7 +500,7 @@ exit_nicely () "energy", &energy, "units", &units, "shots", &shots, "score", &score, NULL); - g_list_foreach (robots, g_object_unref, NULL); + g_list_foreach (robots, (GFunc)g_object_unref, NULL); g_list_free (robots); /* unload the plugin */ -- cgit v1.1