diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac index b912c950b8..6a4826cd49 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], @@ -46,6 +46,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 GTK_DOC_CHECK(1.10) @@ -1388,21 +1415,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 ************************** |