diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-02-04 20:11:52 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-02-04 20:11:52 +0200 |
commit | 5efeb392e00a57accb849904aba8dbc092c4076a (patch) | |
tree | 8f1219ff4650b7ba0948e6f99c9efd155e7933c6 /tests/SConstruct | |
parent | a46ed9f47523712861741c4bb1c42382933467be (diff) |
Add strict-aliasing GCC warnings for core
Diffstat (limited to 'tests/SConstruct')
-rw-r--r-- | tests/SConstruct | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/SConstruct b/tests/SConstruct index 566b4793..abc6e7cb 100644 --- a/tests/SConstruct +++ b/tests/SConstruct @@ -74,6 +74,7 @@ if not env.GetOption('clean'): # Check if we can use extra strict warning flags (only with GCC) extra = '-Wcast-qual -Wlogical-op -Wconversion' + extra += ' -fstrict-aliasing -Wstrict-aliasing=1' extra += ' -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls' extra += ' -Wstack-protector ' if 'gcc' in env['CC']: |