From d2a7b631496728c1bdf2d031c0b1f9ae794cff93 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sat, 14 Dec 2019 10:39:30 +0800 Subject: [PATCH] travis: turn on errors for some more serious compiler warnings These warnings are upgraded to errors on several Open Build Service platforms, so Travis should notify us as well. --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 774bfeead..7a174d199 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,8 @@ matrix: - libpcre2-dev - python env: - - CXXFLAGS="-Werror=address" + # Some warnings upgraded to errors to match Open Build Service platforms + - CXXFLAGS="-Werror=address -Werror=return-type" - os: linux compiler: gcc addons: @@ -27,7 +28,7 @@ matrix: - g++-multilib - python env: - - CXXFLAGS="-m32 -Werror=address" CFLAGS="-m32" + - CXXFLAGS="-m32 -Werror=address -Werror=return-type" CFLAGS="-m32" - os: linux compiler: clang env: