GNOME Bugzilla – Bug 590998
Turn on -Werror and -Wmissing-prototypes
Last modified: 2009-08-06 21:44:55 UTC
Here are some patches that add -Werror -Wmissing-prototypes and fix the problems that reveals.
Created attachment 140061 [details] [review] Turn on -Werror and -Wmissing-prototypes When compiling with GCC turn on -Wmissing-prototypes, and by default turn on -Werror as well. As with most gnome modules: --enable-compile-warnings=minimum/maximum Can be used to disable -Werror (they are the same)
Created attachment 140062 [details] [review] Fix compiler warnings src/shell-global.c src/shell-process.c: Remove dead code src/shell-texture-cache.c src/shell-status-menu.c: Remove <foo>_new() functions that weren't in the header file and not used anyways: src/shell-texture-cache.[ch]: Fix a prototype that used () when (void) was intended.
looks good
Both pushed