Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[build] Adjust checks for breaking of strict aliasing rules
Use of "Aggressive, quick, not too precise" -Wstrict-aliasing=2 causes
false positive warnings during compilation.

Switch to a bit slower but more accurate (default) -Wstrict-aliasing=3.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jan 31, 2017
1 parent 9580e1f commit b8803f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -247,7 +247,7 @@ CFLAGS += -Wdeclaration-after-statement
CFLAGS += -Wold-style-definition
CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-include-dirs
CFLAGS += -Wstrict-aliasing=2
CFLAGS += -Wstrict-aliasing=3
CFLAGS += -Wunsafe-loop-optimizations
CFLAGS += -Winvalid-pch
#CFLAGS += -Waddress (-Wall does this)
Expand Down

0 comments on commit b8803f0

Please sign in to comment.