From 5efeb392e00a57accb849904aba8dbc092c4076a Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Tue, 4 Feb 2014 20:11:52 +0200 Subject: Add strict-aliasing GCC warnings for core --- tests/SConstruct | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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']: -- cgit 1.2.3-korg