From c185a8aae99a15345a622caf54ab2cb8773c031a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 5 Jun 2017 23:10:28 +0200 Subject: [PATCH] travis: add -Wstrict-aliasing=2 -Werror=strict-aliasing to CXXFLAGS --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a94d50f32..1a55a79ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ env: # unfortunately we need this to stay within 50min timelimit given by travis. # this also turns off the debug/warning cxxflags - ORIGINAL_CXXFLAGS="-include lib/cxx11emu.h -pedantic -Wall -Wextra -Wabi -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wshadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -D_GLIBCXX_DEBUG -g " - - CXXFLAGS="${ORIGINAL_CXXFLAGS} -O2 -march=native" + - CXXFLAGS="${ORIGINAL_CXXFLAGS} -O2 -march=native -Wstrict-aliasing=2 -Werror=strict-aliasing" matrix: # special CXXFLAGS for maximum speed, overrides global CXXFLAGS, CHECK_CLANG is the var that controls if we download and check clang in that travis job - CXXFLAGS="${CXXFLAGS} -DCHECK_INTERNAL"