summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-04-19 03:17:09 +0200
committerPablo Barciela <[email protected]>2020-04-19 03:53:34 +0200
commitd489851fbaed00cb21d091e7f4c59030c7048df4 (patch)
tree6424e1a3b7e0c55047de12a9c82c737c3d8f3f43
parentd3e217a4afafeea27a8355cc0aa9a68be1c7013e (diff)
downloadmate-calc-d489851fbaed00cb21d091e7f4c59030c7048df4.tar.bz2
mate-calc-d489851fbaed00cb21d091e7f4c59030c7048df4.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 e3b6c73..cfd088d 100644
--- a/.build.yml
+++ b/.build.yml
@@ -105,6 +105,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
+
- ./autogen.sh
- scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- if [ $CPU_COUNT -gt 1 ]; then
@@ -112,9 +117,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