From b48515d5cc0422bd06605cf338e9adf61c1e5ac8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 6 Jul 2020 12:44:25 +0200 Subject: [PATCH] squash! Treat warnings as errors in Travis CI builds Add wxALLOW_WARNINGS which can be set to prevent this from happening for the ports where we don't want to avoids warnings anyhow because they indicate real problems in the code, such as wxDFB. --- .travis.yml | 2 +- build/tools/travis-ci.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7e990d75a8..d73bc85e50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,7 +59,7 @@ matrix: name: wxX11 Ubuntu 18.04 - dist: bionic compiler: gcc - env: wxCONFIGURE_FLAGS="--with-directfb --enable-pch --disable-stc" wxSKIP_SAMPLES=1 + env: wxCONFIGURE_FLAGS="--with-directfb --enable-pch --disable-stc" wxSKIP_SAMPLES=1 wxALLOW_WARNINGS=1 name: wxDFB Ubuntu 18.04 - dist: bionic compiler: gcc diff --git a/build/tools/travis-ci.sh b/build/tools/travis-ci.sh index 4196115770..ce02523dde 100755 --- a/build/tools/travis-ci.sh +++ b/build/tools/travis-ci.sh @@ -56,7 +56,7 @@ case $wxTOOLSET in ;; *) echo 'travis_fold:start:configure' - export CXXFLAGS=-Werror + [ "$wxALLOW_WARNINGS" = 1 ] || export CXXFLAGS=-Werror echo 'Configuring...' ./configure --disable-optimise --disable-debug_info $wxCONFIGURE_FLAGS || rc=$? if [ -n "$rc" ]; then