diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-27 19:42:46 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-27 21:46:20 +0200 |
| commit | 5d440e1133fc68dfffeaf53cf934b996dae811c7 (patch) | |
| tree | f87883d0fcfe4c19ae5f7490306d49cc4f5d02b3 /wscript | |
| parent | 99c1d1f247343b884af0b51389311484ed265d3b (diff) | |
Work around a GCC bug related to Wmaybe-initialized.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -122,6 +122,11 @@ 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 + # flags up these warnings all over the place in boost::optional. + # These 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: have_c11 = False |
