From 3c043e76fc0443039026adc88dea6f5ac706aa6e Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 6 Apr 2020 23:03:12 +0200 Subject: Travis CI: debian build: add -Wunused-parameter to CFLAGS --- .build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index 55a177f..8fa82f3 100644 --- a/.build.yml +++ b/.build.yml @@ -92,6 +92,10 @@ variables: -enable-checker security.insecureAPI.strcpy"' build_scripts: + - if [ ${DISTRO_NAME} == "debian" ];then + - export CFLAGS+=" -Wunused-parameter" + - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - fi - ./autogen.sh --enable-compile-warnings=maximum - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum - if [ $CPU_COUNT -gt 1 ]; then @@ -99,9 +103,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 before_scripts: - cd ${START_DIR} -- cgit v1.2.1