mirror of https://github.com/GNOME/gimp.git
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:
parent
309b21384a
commit
54f8ab2ebe
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue