diff options
author | Bradley Smith | 2008-03-07 18:46:31 +0000 |
---|---|---|
committer | Bradley Smith | 2008-03-07 18:46:31 +0000 |
commit | 371d4c3202de9fa52ab0ffd0a5726a18e0479a12 (patch) | |
tree | 4c299cb10acaf0717215a94a169c987fad87b7c0 /src | |
parent | Adjust bootstrap script to not autorun configure (diff) | |
download | gnurobots-371d4c3202de9fa52ab0ffd0a5726a18e0479a12.tar.gz |
Add -pedantic-errors and -Werror flags to compile, and fix code to comply.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/main.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 47d7f3b..cab2e16 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,4 +9,3 @@ INCLUDES = $(GLIB2_CFLAGS) $(GUILE_CFLAGS) -I$(top_builddir)/include \ grobots_SOURCES = main.c api.c sign.c map.c grobot.c userinterface.c grobots_LDFLAGS = $(GLIB2_LIBS) $(GUILE_LDFLAGS) -lltdl - @@ -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 */ |