From e87e747a29e98aa6253176bbc892a783b4e3c6b7 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sun, 19 Jun 2016 12:48:35 -0400 Subject: [PATCH 1/2] clean up warning done in setup-fixes --- src/p_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index 6c14e3614..e56c44c70 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1934,7 +1934,7 @@ static void P_GroupLines(void) if (sector->linecount == 0) // no lines found? { sector->lines = NULL; - CONS_Debug(DBG_SETUP, "P_GroupLines: sector %d has no lines\n", i); + CONS_Debug(DBG_SETUP, "P_GroupLines: sector %s has no lines\n", sizeu1(i)); } else { From 6f4c52c993f043e172b6a4ba443a7cbea212c4ec Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Sun, 19 Jun 2016 12:51:56 -0400 Subject: [PATCH 2/2] travis: treat warnings as errors --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e3408cf6f..d728758ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -98,7 +98,7 @@ matrix: - p7zip-full - gcc-6 compiler: gcc-6 - env: WFLAGS="-Wno-error=tautological-compare" + env: WFLAGS="-Wno-tautological-compare" #gcc-6 (Ubuntu 6.1.1-3ubuntu11~14.04.1) 6.1.1 20160511 - os: linux compiler: clang @@ -213,7 +213,7 @@ before_script: - 7z x $HOME/srb2_cache/SRB2-v2115-assets-2.7z -oassets - mkdir build - cd build - - export CFLAGS="-Wall -W $WFLAGS" + - export CFLAGS="-Wall -W -Werror $WFLAGS" - export CCACHE_COMPRESS=true - cmake .. -DCMAKE_BUILD_TYPE=Release