summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-02-27 10:07:30 +0100
committermarxin <mliska@suse.cz>2019-04-02 17:14:47 +0200
commite7f22ebdcd36d620a21977392365661aa956527f (patch)
treef2ef4c28bcf6c65f287ae54839d19672418536d4 /SConstruct
parent612a109b81320fcd2f06e5ddff71925d81aca509 (diff)
downloadredot-engine-e7f22ebdcd36d620a21977392365661aa956527f.tar.gz
Enable warnings=extra on clang and GCC testers.
And remove 2 warnings from warnings=extra.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 55b061a6f7..b3875d6801 100644
--- a/SConstruct
+++ b/SConstruct
@@ -347,7 +347,12 @@ if selected_platform in platform_list:
if version != None and version[0] >= '7':
shadow_local_warning = ['-Wshadow-local']
if (env["warnings"] == 'extra'):
- env.Append(CCFLAGS=['-Wall', '-Wextra'] + all_plus_warnings + shadow_local_warning)
+ # FIXME: enable -Wimplicit-fallthrough once #26135 is fixed
+ # FIXME: enable -Wclobbered once #26351 is fixed
+ env.Append(CCFLAGS=['-Wall', '-Wextra', '-Wno-implicit-fallthrough', '-Wno-unused-parameter'] + all_plus_warnings + shadow_local_warning)
+ if methods.use_gcc(env):
+ env['CCFLAGS'] += ['-Wno-clobbered']
+
elif (env["warnings"] == 'all'):
env.Append(CCFLAGS=['-Wall'] + shadow_local_warning)
elif (env["warnings"] == 'moderate'):