Actually use correct gcc version in check from previous.
authorCarl Hetherington <cth@carlh.net>
Fri, 7 May 2021 16:21:51 +0000 (18:21 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 7 May 2021 16:21:51 +0000 (18:21 +0200)
wscript

diff --git a/wscript b/wscript
index 74d0951a225474f484cf488dbcfdd4a949006b70..97b7bf25e5d0ed930b2199ab19ceee6d0239345e 100644 (file)
--- a/wscript
+++ b/wscript
@@ -92,7 +92,7 @@ def configure(conf):
     if conf.env.TARGET_OSX:
         conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter', '-Wno-unused-local-typedef'])
         conf.env.append_value('LINKFLAGS', '-headerpad_max_install_names')
-    elif int(gcc[0]) >= 4 and int(gcc[1]) > 1:
+    elif int(gcc[0]) > 4:
         conf.env.append_value('CXXFLAGS', ['-Wsuggest-override'])
 
     # Disable libxml++ deprecation warnings for now