Add strict-aliasing GCC warnings for core

This commit is contained in:
Petteri Aimonen
2014-02-04 20:11:52 +02:00
parent a46ed9f475
commit 5efeb392e0

View File

@@ -74,6 +74,7 @@ if not env.GetOption('clean'):
# Check if we can use extra strict warning flags (only with GCC) # Check if we can use extra strict warning flags (only with GCC)
extra = '-Wcast-qual -Wlogical-op -Wconversion' extra = '-Wcast-qual -Wlogical-op -Wconversion'
extra += ' -fstrict-aliasing -Wstrict-aliasing=1'
extra += ' -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls' extra += ' -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls'
extra += ' -Wstack-protector ' extra += ' -Wstack-protector '
if 'gcc' in env['CC']: if 'gcc' in env['CC']: