From 17bda78e875c9e73711e044ca0a9e8adce24bbb8 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 16 Apr 2020 02:07:06 +0200 Subject: Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS --- .build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.build.yml b/.build.yml index 17897d9..eb55d51 100644 --- a/.build.yml +++ b/.build.yml @@ -152,6 +152,7 @@ before_scripts: - fi - make - make install + - cd ${START_DIR} - '[ -f mate-common-1.24.1.tar.xz ] || curl -Ls -o mate-common-1.24.1.tar.xz https://github.com/mate-desktop/mate-common/releases/download/v1.24.1/mate-common-1.24.1.tar.xz' - tar xf mate-common-1.24.1.tar.xz @@ -165,6 +166,11 @@ before_scripts: - make install build_scripts: + - if [ ${DISTRO_NAME} == "debian" ];then + - export CFLAGS+=" -Wsign-compare -Wunused-parameter" + - cppcheck --enable=warning,style,performance,portability,information,missingInclude -i'mate-desktop-1.23.2' . + - fi + - ./autogen.sh - scan-build $CHECKERS ./configure --prefix=/usr --enable-pulse --enable-compile-warnings=maximum - if [ $CPU_COUNT -gt 1 ]; then @@ -172,9 +178,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 -i'mate-desktop-1.23.2' . - - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then -- cgit v1.2.1