summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-05-01 03:16:17 +0200
committerPablo Barciela <[email protected]>2020-05-01 03:34:22 +0200
commit759927ba9a411ff858e589f176df2b22e2f4b556 (patch)
tree5f4d138e580095fd6c1a077d5578c855f37e57df
parent17624745e1c0d9abf31e48cb866429887500feca (diff)
downloadmate-power-manager-759927ba9a411ff858e589f176df2b22e2f4b556.tar.bz2
mate-power-manager-759927ba9a411ff858e589f176df2b22e2f4b556.tar.xz
Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS
-rw-r--r--.build.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.build.yml b/.build.yml
index a144837..421421b 100644
--- a/.build.yml
+++ b/.build.yml
@@ -135,21 +135,24 @@ 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
+
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then
- - NOCONFIGURE=1 ./autogen.sh
- scan-build $CHECKERS ./configure --without-keyring --enable-compile-warnings=maximum
- else
- - NOCONFIGURE=1 ./autogen.sh
- scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- fi
+
- if [ $CPU_COUNT -gt 1 ]; then
- scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT
- 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} == "debian" ];then