From 759927ba9a411ff858e589f176df2b22e2f4b556 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Fri, 1 May 2020 03:16:17 +0200 Subject: Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS --- .build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.build.yml b/.build.yml index a144837..421421b 100644 --- a/.build.yml +++ b/.build.yml @@ -135,21 +135,24 @@ 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 . + - fi + + - NOCONFIGURE=1 ./autogen.sh + - if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then - - NOCONFIGURE=1 ./autogen.sh - scan-build $CHECKERS ./configure --without-keyring --enable-compile-warnings=maximum - else - - NOCONFIGURE=1 ./autogen.sh - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum - fi + - if [ $CPU_COUNT -gt 1 ]; then - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT - 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} == "debian" ];then -- cgit v1.2.1