From 7cc174808ee39a91c81abd44f8e9cb2d4cb76f03 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Thu, 26 Apr 2018 11:40:39 +0200 Subject: [PATCH] GCC-7: disable pre-C++17 warning This warning is only relevant when object files compile with and without C++17 language level are to be linked into a single executable; starting with C++17, new style 'noexcept' specifications will become part of the function signature and thus part of the mangled function name. Linkiing mixed object files might fail in such a situation. Obviously this warning is not relevant for us; moreover we plan to upgrade to C++17 soon --- admin/scons/Setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/scons/Setup.py b/admin/scons/Setup.py index 0acda186b..3e0b15727 100644 --- a/admin/scons/Setup.py +++ b/admin/scons/Setup.py @@ -74,7 +74,7 @@ def defineBuildEnvironment(): env.Replace( CPPPATH =["#src"] # used to find includes, "#" means always absolute to build-root , CPPDEFINES=['LUMIERA_VERSION='+VERSION ] # note: it's a list to append further defines , CCFLAGS='-Wall -Wextra -Wformat-security' - , CXXFLAGS='-std=gnu++14 -Wno-enum-compare' + , CXXFLAGS='-std=gnu++14 -Wno-enum-compare -Wno-noexcept-type' , CFLAGS='-std=gnu99' ) env.Append(LINKFLAGS='-Wl,--no-undefined') # require every dependency is given on link, in the right order