X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=wscript;h=f9aa784397dae9599ae64e7c017ddc3cb652c87a;hb=47245166de02206389a0cb18aae7de35f8517c7d;hp=fdf743cdd7d3b00979fb12e15e4c90cfd8355bd4;hpb=6445498b2128a05692acd00f11bfd1ad85769a51;p=dcpomatic.git diff --git a/wscript b/wscript index fdf743cdd..f9aa78439 100644 --- a/wscript +++ b/wscript @@ -122,12 +122,9 @@ 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]) >= 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. - # 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 + # Most gccs still give these warnings from boost::optional + conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized']) else: have_c11 = False