diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-20 22:57:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-20 22:57:01 +0100 |
| commit | feaa2ccf73153b0693c4b4a9b2468869ed0b9962 (patch) | |
| tree | 4e92d174618e1682d5ecab7aac7a25f65d24ab38 /wscript | |
| parent | 51dda295b5bd63e6635ae17786e4657c41a3678a (diff) | |
Don't use -Wsuggest-override on gcc 7.5.0 (Ubuntu 18.04)
because turning it off with a pragma seems not to work.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -147,8 +147,10 @@ def configure(conf): conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type']) # Most gccs still give these warnings from boost::optional conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized']) - if int(gcc[0]) > 4: + if int(gcc[0]) > 7: # gcc 4.8.5 on Centos 7 does not have this warning + # gcc 7.5.0 on Ubuntu 18.04 does, but I didn't manage to turn it + # back off again with a pragma conf.env.append_value('CXXFLAGS', ['-Wsuggest-override']) if conf.options.enable_debug: |
