From ab8da0b9571aaa21c5f38276a54ba20a0e700c46 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Tue, 27 Nov 2012 19:21:34 +0100 Subject: [PATCH 01/10] Enable compiler warnings for C code Compilation of glib/demo uses a C compiler, thus compiler warnings should be enabled in the CFLAGS variable. --- configure.ac | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 762aa6b..f8b45f5 100644 --- a/configure.ac +++ b/configure.ac @@ -743,7 +743,8 @@ if test "x$GCC" != xyes; then fi case "$enable_compile_warnings" in no) ;; - yes) CXXFLAGS="-Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common $CXXFLAGS" ;; + yes) CXXFLAGS="-Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common $CXXFLAGS"; + CFLAGS="-Wall $CFLAGS" ;; kde) CXXFLAGS="-Wnon-virtual-dtor -Wno-long-long -Wundef \ -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align \ -Wconversion -Wall -W -Wpointer-arith \ -- 1.7.5.4