added -Winit-self and -Wpointer-arith to CFLAGS.

2006-11-11  Michael Natterer  <mitch@gimp.org>

	* configure.in: added -Winit-self and -Wpointer-arith to CFLAGS.
This commit is contained in:
Michael Natterer 2006-11-11 11:14:11 +00:00 committed by Michael Natterer
parent cb6fe48ccd
commit 8cbc5e652b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-11-11 Michael Natterer <mitch@gimp.org>
* configure.in: added -Winit-self and -Wpointer-arith to CFLAGS.
2006-11-11 Michael Natterer <mitch@gimp.org> 2006-11-11 Michael Natterer <mitch@gimp.org>
* app/tools/gimpselectiontool.c * app/tools/gimpselectiontool.c

View File

@ -322,6 +322,12 @@ CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-declarations') GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-declarations')
CFLAGS="$CFLAGS $extra_warnings" CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Winit-self')
CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wpointer-arith')
CFLAGS="$CFLAGS $extra_warnings"
# Ensure MSVC-compatible struct packing convention is used when # Ensure MSVC-compatible struct packing convention is used when
# compiling for Win32 with gcc. # compiling for Win32 with gcc.