diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-20 12:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 12:19:57 +0200 |
commit | 237a0488eba742d15bc676b27838c1635dcd79a9 (patch) | |
tree | 2dc0611b04df46591cfd722821811d80d58edf94 | |
parent | 300d4dfd54af8769641c7464cc73f1ff681fe973 (diff) | |
parent | 4853870a181710e6148cfe074c0d239de0e28d4b (diff) |
Merge pull request #29918 from akien-mga/scons-gcc-Wclobbered
SCons: Enable -Wclobbered in warnings=extra for GCC
-rw-r--r-- | SConstruct | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 7358494123..a619ea0797 100644 --- a/SConstruct +++ b/SConstruct @@ -339,14 +339,13 @@ if selected_platform in platform_list: shadow_local_warning = ['-Wshadow-local'] if (env["warnings"] == 'extra'): - # FIXME: enable -Wclobbered once #26351 is fixed # Note: enable -Wimplicit-fallthrough for Clang (already part of -Wextra for GCC) # once we switch to C++11 or later (necessary for our FALLTHROUGH macro). env.Append(CCFLAGS=['-Wall', '-Wextra', '-Wno-unused-parameter'] + all_plus_warnings + shadow_local_warning) env.Append(CXXFLAGS=['-Wctor-dtor-privacy', '-Wnon-virtual-dtor']) if methods.using_gcc(env): - env.Append(CCFLAGS=['-Wno-clobbered', '-Walloc-zero', + env.Append(CCFLAGS=['-Walloc-zero', '-Wduplicated-branches', '-Wduplicated-cond', '-Wstringop-overflow=4', '-Wlogical-op']) env.Append(CXXFLAGS=['-Wnoexcept', '-Wplacement-new=1']) |