Commit 54f8ab2e authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

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.
parent 309b2138
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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment