From 2dfdc99cb5e620ecf2911191a610007d16a0640e Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Sat, 28 May 2016 22:30:28 -0400
Subject: [PATCH] travis-ci: let add pre build files, gcc-6 get disable warning
 flags

---
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 9e92ae1f80..836ac58aef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -100,6 +100,7 @@ matrix:
               - libgme-dev
               - p7zip-full
           compiler: gcc-6
+          env: WFLAGS=-Werror -Wno-tautological-compare -Wno-error=tautological-compare
           #gcc-6 (Ubuntu 6.1.1-3ubuntu11~14.04.1) 6.1.1 20160511
         - os: linux
           compiler: clang
@@ -150,8 +151,7 @@ before_script:
   - 7z x $HOME/srb2_cache/SRB2-v2115-assets-2.7z -oassets
   - mkdir build
   - cd build
-  - export CFLAGS="-Wall -W -Werror -Wno-tautological-compare -Wno-error=tautological-compare"
-  - $CC -Wno-error=tautological-compare -dM -E - < /dev/null&>/dev/null||export CFLAGS="Wall -W -Werror"
+  - export CFLAGS="-Wall -W $WFLAGS"
   - cmake .. -DCMAKE_BUILD_TYPE=Release
 
 before_install:
-- 
GitLab