add -Wmissing-declarations and -Wmissing-prototypes to CFLAGS if the

2006-10-31  Michael Natterer  <mitch@gimp.org>

	* configure.in: add -Wmissing-declarations and -Wmissing-prototypes
	to CFLAGS if the compiler supports them. Still warns in some files
	but most stuff compiles cleanly after all the cleanups below.
This commit is contained in:
Michael Natterer 2006-10-31 19:05:09 +00:00 committed by Michael Natterer
parent 309b21384a
commit 54f8ab2ebe
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-10-31 Michael Natterer <mitch@gimp.org>
* configure.in: add -Wmissing-declarations and -Wmissing-prototypes
to CFLAGS if the compiler supports them. Still warns in some files
but most stuff compiles cleanly after all the cleanups below.
2006-10-31 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/app.pl: declare all register_foo_procs() functions

View File

@ -311,10 +311,17 @@ if eval "test x$GCC = xyes"; then
fi
changequote([,])dnl
# If possible, warn if C99isms are used
GIMP_DETECT_CFLAGS(extra_warnings, '-Wdeclaration-after-statement')
CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-prototypes')
CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-declarations')
CFLAGS="$CFLAGS $extra_warnings"
# Ensure MSVC-compatible struct packing convention is used when
# compiling for Win32 with gcc.