From: Petteri Aimonen Date: Tue, 4 Feb 2014 18:11:52 +0000 (+0200) Subject: Add strict-aliasing GCC warnings for core X-Git-Tag: 3.99.1~14^2~269 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=5efeb392e00a57accb849904aba8dbc092c4076a;p=apps%2Flow-level-can-service.git Add strict-aliasing GCC warnings for core --- diff --git a/tests/SConstruct b/tests/SConstruct index 566b479..abc6e7c 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']: