Add strict-aliasing GCC warnings for core
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 4 Feb 2014 18:11:52 +0000 (20:11 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Tue, 4 Feb 2014 18:11:52 +0000 (20:11 +0200)
tests/SConstruct

index 566b479..abc6e7c 100644 (file)
@@ -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']: