Add strict-aliasing GCC warnings for core
This commit is contained in:
@@ -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']:
|
||||||
|
|||||||
Reference in New Issue
Block a user