projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6445498
)
Give up trying to be selective with -Wno-maybe-uninitialized
author
Carl Hetherington
<cth@carlh.net>
Tue, 28 Jul 2020 10:56:20 +0000
(12:56 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 28 Jul 2020 10:56:20 +0000
(12:56 +0200)
wscript
patch
|
blob
|
history
diff --git
a/wscript
b/wscript
index fdf743cdd7d3b00979fb12e15e4c90cfd8355bd4..fbf115e1c70c1be9264ad4d8ddf1e72212b39f6e 100644
(file)
--- a/
wscript
+++ b/
wscript
@@
-109,6
+109,8
@@
def configure(conf):
'-Wwrite-strings',
# I tried and failed to ignore these with _Pragma
'-Wno-ignored-qualifiers',
'-Wwrite-strings',
# I tried and failed to ignore these with _Pragma
'-Wno-ignored-qualifiers',
+ # Most gccs still give these warnings from boost::optional
+ '-Wno-maybe-uninitialized',
'-D_FILE_OFFSET_BITS=64'])
if conf.options.force_cpp11:
'-D_FILE_OFFSET_BITS=64'])
if conf.options.force_cpp11:
@@
-122,11
+124,6
@@
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'])
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
else:
have_c11 = False
have_c11 = int(gcc[0]) >= 4 and int(gcc[1]) >= 8 and int(gcc[2]) >= 1
else:
have_c11 = False