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.
This commit is contained in:
Vadim Zeitlin
2020-07-06 12:44:25 +02:00
parent 3fc15101be
commit b48515d5cc
2 changed files with 2 additions and 2 deletions

View File

@@ -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