[evolution-data-server/openismus-work-3-8: 67/121] Fixed C++ compiler flags to work with various GCC versions



commit 0c938dbd66547b254bf00a22f240763ab7e2acb0
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Tue Jun 18 16:29:25 2013 +0900

    Fixed C++ compiler flags to work with various GCC versions
    
    Older versions of GCC don't recognize -Wnoexcept

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2554c1c..704bf9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,13 +182,13 @@ dnl Compiler Warning Flags
 dnl ******************************
 proposed_warning_flags="-Wall -Wextra
        -Wdeprecated-declarations
-       -Werror-implicit-function-declaration
        -Wformat-security -Winit-self
        -Wmissing-declarations -Wmissing-include-dirs
        -Wmissing-noreturn -Wpointer-arith
        -Wredundant-decls -Wundef -Wwrite-strings"
 
 proposed_c_warning_flags="$proposed_warning_flags
+       -Werror-implicit-function-declaration
        -Wdeclaration-after-statement
        -Wno-missing-field-initializers
        -Wno-sign-compare
@@ -196,7 +196,7 @@ proposed_c_warning_flags="$proposed_warning_flags
        -Wnested-externs"
 
 proposed_cxx_warning_flags="$proposed_warning_flags
-       -Wabi -Wnoexcept"
+       -Wabi"
 
 AS_COMPILER_FLAGS(WARNING_FLAGS, [$proposed_c_warning_flags])
 AC_SUBST(WARNING_FLAGS)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]