From 1edea40b39648622efa2579381344d3c0529c5d4 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 12 Apr 2020 03:35:04 +0200 Subject: Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS --- .build.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index 86453679..a1c53182 100644 --- a/.build.yml +++ b/.build.yml @@ -143,11 +143,11 @@ before_scripts: - make install build_scripts: -# build failed with f30 und using clang patch, fixed in f30? -# - if [ ${DISTRO_NAME} == "fedora" ];then -# - curl -Ls -o fedora.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/fedora.sh -# - bash ./fedora.sh -# - fi + - if [ ${DISTRO_NAME} == "debian" ];then + - export CFLAGS+=" -Wsign-compare -Wunused-parameter" + - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - fi + - ./autogen.sh --enable-empty-view - scan-build $CHECKERS ./configure --enable-empty-view --enable-compile-warnings=maximum - if [ $CPU_COUNT -gt 1 ]; then @@ -155,9 +155,6 @@ build_scripts: - else - scan-build $CHECKERS --keep-cc -o html-report make - fi - - if [ ${DISTRO_NAME} == "debian" ];then - - cppcheck --enable=warning,style,performance,portability,information,missingInclude . - - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then -- cgit v1.2.1