summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-08-03 02:22:18 +0200
committerPablo Barciela <[email protected]>2020-08-03 03:01:29 +0200
commita45c425578743af51ce700f7306518984cf4c538 (patch)
tree5d5ecf9f4138b362201deb20b3710347754e75c7
parent3e6ecc3ba9c1d7a2fe8501e6e95aa793f274a120 (diff)
downloadmate-utils-a45c425578743af51ce700f7306518984cf4c538.tar.bz2
mate-utils-a45c425578743af51ce700f7306518984cf4c538.tar.xz
Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS
-rw-r--r--.build.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.build.yml b/.build.yml
index 01e72a56..157eca05 100644
--- a/.build.yml
+++ b/.build.yml
@@ -131,6 +131,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 .
+ - fi
+
- NOCONFIGURE=1 ./autogen.sh
- scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- if [ $CPU_COUNT -gt 1 ]; then
@@ -138,9 +143,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
after_scripts:
- if [ ${DISTRO_NAME} == "fedora" ];then