summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-07-26 19:56:19 +0200
committerCarl Hetherington <cth@carlh.net>2020-07-26 21:30:59 +0200
commit8edebbfae00f16d007f4e7062315059c8a0e8b9c (patch)
tree82985118408157b827dbd35850262039165c0fbf /wscript
parent0d711edad0694ee5f5c735b221d52387499e2d36 (diff)
I think -Wno-cast-function-type is GCC 8 only.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/wscript b/wscript
index 4fba8fb57..5ca164d51 100644
--- a/wscript
+++ b/wscript
@@ -108,7 +108,6 @@ def configure(conf):
'-Wextra',
'-Wwrite-strings',
# I tried and failed to ignore these with _Pragma
- '-Wno-cast-function-type',
'-Wno-ignored-qualifiers',
'-D_FILE_OFFSET_BITS=64'])
@@ -122,6 +121,9 @@ def configure(conf):
gcc = conf.env['CC_VERSION']
if int(gcc[0]) >= 4 and int(gcc[1]) > 1:
conf.env.append_value('CXXFLAGS', ['-Wno-unused-result'])
+ if int(gcc[0]) >= 8:
+ # I tried and failed to ignore these with _Pragma
+ conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type'])
if int(gcc[0]) >= 9:
conf.env.append_value('CXXFLAGS', ['-Wno-deprecated-copy'])
have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1