Fix complaints about warnings on OS X.
authorCarl Hetherington <cth@carlh.net>
Wed, 28 Feb 2018 12:27:08 +0000 (12:27 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 28 Feb 2018 12:27:08 +0000 (12:27 +0000)
wscript

diff --git a/wscript b/wscript
index ab86865b25cac7c4b5279fccfa2b5b0ab9eb8c00..c5134f3c29ef1ed81f76e800cad4d4ab84933779 100644 (file)
--- a/wscript
+++ b/wscript
@@ -81,8 +81,6 @@ def configure(conf):
                                        '-Wcast-align',
                                        '-Wextra',
                                        '-Wwrite-strings',
-                                       '-Wunsafe-loop-optimizations',
-                                       '-Wlogical-op',
                                        # Remove auto_ptr warnings from libxml++-2.6
                                        '-Wno-deprecated-declarations',
                                        '-D_FILE_OFFSET_BITS=64'])
@@ -140,6 +138,7 @@ def configure(conf):
     # POSIX
     if conf.env.TARGET_LINUX or conf.env.TARGET_OSX:
         conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_POSIX')
+        conf.env.append_value('CXXFLAGS', ['-Wunsafe-loop-optimizations', '-Wlogical-op'])
         boost_lib_suffix = ''
         boost_thread = 'boost_thread'
         conf.env.append_value('LINKFLAGS', '-pthread')