Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS

Pablo Barciela 2020-04-25 03:41:51 +02:00
parent b91ecf5b9e
commit 93407b893d
1 changed files with 5 additions and 3 deletions

View File

@ -107,6 +107,11 @@ before_scripts:
- make install - make install
build_scripts: 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 - NOCONFIGURE=1 ./autogen.sh
- scan-build $CHECKERS ./configure --enable-compile-warnings=maximum - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- if [ $CPU_COUNT -gt 1 ]; then - if [ $CPU_COUNT -gt 1 ]; then
@ -114,9 +119,6 @@ build_scripts:
- else - else
- scan-build $CHECKERS --keep-cc -o html-report make - scan-build $CHECKERS --keep-cc -o html-report make
- fi - fi
- if [ ${DISTRO_NAME} == "debian" ];then
- cppcheck --enable=warning,style,performance,portability,information,missingInclude .
- fi
after_scripts: after_scripts:
- if [ ${DISTRO_NAME} == "fedora" ];then - if [ ${DISTRO_NAME} == "fedora" ];then