From 3dadd1f85558df158b631dbd7173ff4d9c2f7c87 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 25 May 2009 00:18:46 -0400 Subject: Add very strict compiler warning flags. Lots of new warnings to clean up. Have fun. --- configure.ac | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 16b3f68da7..b711b65320 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,33 @@ m4_define([libnotify_minimum_version], [0.3.0]) m4_define([gnome_pilot_minimum_version], [2.0.15]) m4_define([gweather_minimum_version], [2.25.3]) +# Compiler Warning Flags + +AS_COMPILER_FLAGS(WARNING_FLAGS, + "-DG_DISABLE_DEPRECATED + -DPANGO_DISABLE_DEPRECATED + -DGDK_PIXBUF_DISABLE_DEPRECATED + -DGDK_DISABLE_DEPRECATED + -Wall -Wextra + -Wno-missing-field-initializers + -Wno-sign-compare + -Wno-unused-parameter + -Wdeclaration-after-statement + -Werror-implicit-function-declaration + -Wformat-nonliteral -Wformat-security -Winit-self + -Wmissing-declarations -Wmissing-include-dirs + -Wmissing-noreturn -Wnested-externs -Wpointer-arith + -Wredundant-decls -Wundef -Wwrite-strings") +AC_SUBST(WARNING_FLAGS) + +# Other useful compiler warnings for test builds only. +# These may produce warnings we have no control over. +# +# -Wmissing-format-attribute +# -Wshadow + +CFLAGS="$CFLAGS $WARNING_FLAGS" + # GNOME Documentation GNOME_DOC_INIT # Gross hack to enable 'make dist' on automake 1.9+tar 1.14. @@ -1383,21 +1410,6 @@ dnl We use AC_SUBST_FILE because AC_SUBST won't deal with newlines EVO_MARSHAL_RULE=$srcdir/marshal.mk AC_SUBST_FILE(EVO_MARSHAL_RULE) -dnl ************************* -dnl CFLAGS and LIBS and stuff -dnl ************************* - -GNOME_COMPILE_WARNINGS(yes) -CFLAGS="$CFLAGS $WARN_CFLAGS" -case $CFLAGS in -*-Wall*) - # Turn off the annoying "comparison between signed and unsigned" - # warning in gcc 3.3 - CFLAGS="$CFLAGS -Wno-sign-compare" - ;; -esac - - dnl ************************** dnl Check for X libs and -lX11 dnl ************************** -- cgit From 949c01ec2e00fd178c5ee0307191fa130ab6aa74 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 25 May 2009 09:46:37 -0400 Subject: Post-release version bump. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b711b65320..1a9f816843 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ(2.52) m4_define([evo_major_version], [2]) m4_define([evo_minor_version], [27]) -m4_define([evo_micro_version], [2]) +m4_define([evo_micro_version], [3]) m4_define([evo_version], [evo_major_version.evo_minor_version.evo_micro_version]) m4_define([evo_stable_version], -- cgit