diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-28 11:23:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-28 11:23:08 +0200 |
| commit | 10637d3694aac941c022081166c4956a5d0b28f1 (patch) | |
| tree | 56db50a82d59ab9e6d94156a9c76da73f2388f16 /wscript | |
| parent | 2da4caba7871455c097c0ed940dd6f2332dbda5d (diff) | |
Expand use of -Wno-maybe-uninitialized.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -122,10 +122,10 @@ def configure(conf): if int(gcc[0]) >= 8: # I tried and failed to ignore these with _Pragma conf.env.append_value('CXXFLAGS', ['-Wno-cast-function-type']) - elif int(gcc[0]) == 7: - # There appears to be a GCC bug which lingered from major versions 5--7 and which + elif int(gcc[0]) >= 5 and int(gcc[0]) <= 8 + # There appears to be a GCC bug which lingered from major versions 5--8 and which # flags up these warnings all over the place in boost::optional. - # These seems to be the only practical way to hide it + # This seems to be the only practical way to hide it. conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized']) have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1 else: |
