From f45fe8c44768e00f9b36776f86c31279887268f9 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 22 Apr 2020 01:25:49 +0200 Subject: Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS --- .build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index 649a91f..ea150c8 100644 --- a/.build.yml +++ b/.build.yml @@ -88,6 +88,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 -D'MATEMENU_I_KNOW_THIS_IS_UNSTABLE' -D'G_ENABLE_DEBUG' . + - fi + - NOCONFIGURE=1 ./autogen.sh - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum - if [ $CPU_COUNT -gt 1 ]; then @@ -95,9 +100,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 -D'MATEMENU_I_KNOW_THIS_IS_UNSTABLE' -D'G_ENABLE_DEBUG' . - - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then -- cgit v1.2.1