diff configure.in @ 746:9cf7d61a2e7f

Add -Wstrict-prototypes to gcc options only in developer mode since it clutters the compilation log with unfixable warnings. Add -Wall in developer mode to display even more warnings. Fix display of --enable-deprecated at end of configure (yes and no were inversed).
author zas_
date Fri, 23 May 2008 15:07:30 +0000
parents 1af0ce40cf90
children 5329797d8ff1
line wrap: on
line diff
--- a/configure.in	Fri May 23 12:27:28 2008 +0000
+++ b/configure.in	Fri May 23 15:07:30 2008 +0000
@@ -65,7 +65,12 @@
 if test "x${enable_debug}" != "xno"
 then
   CXXFLAGS="${CXXFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
-  CFLAGS="${CFLAGS} -g -O0 -Wstrict-prototypes -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
+  CFLAGS="${CFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -W"
+  if test "x${enable_developer}" == "xyes"
+  then
+  CXXFLAGS="${CXXFLAGS} -Wall"
+  CFLAGS="${CFLAGS} -Wstrict-prototypes -Wall"
+  fi
   AC_DEFINE(DEBUG,1,[Defined if Geeqie is compiled with debugging support])
   __IS_DEBUG=yes
 else
@@ -89,9 +94,9 @@
 then
   CXXFLAGS="${CXXFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
   CFLAGS="${CFLAGS} -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1"
-  __IS_DEPRECATED=no
+  __IS_DEPRECATED=yes
 else
-  __IS_DEPRECATED=yes
+  __IS_DEPRECATED=no
 fi