From 87c9ef411bdb25e134513f164ddab3ffb0eb8662 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 19 Apr 2020 03:23:40 +0200 Subject: Travis CI: debian build: add -Wsign-compare -Wunused-parameter to CFLAGS --- .build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index ccbcf4ce..40fddff4 100644 --- a/.build.yml +++ b/.build.yml @@ -169,6 +169,7 @@ before_scripts: - fi - make - make install + - cd ${START_DIR} - if [ ! -f mate-desktop-1.23.2.tar.xz ];then - curl -Ls -o mate-desktop-1.23.2.tar.xz https://github.com/mate-desktop/mate-desktop/releases/download/v1.23.2/mate-desktop-1.23.2.tar.xz @@ -202,17 +203,20 @@ before_scripts: - fi - make - make install + - curl -Ls -o /usr/bin/gla11y https://github.com/hypra/gla11y/raw/v0.3/gla11y - chmod +x /usr/bin/gla11y build_scripts: - - ./autogen.sh - - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum - - scan-build $CHECKERS --keep-cc -o html-report make -j $(( $CPU_COUNT + 1 )) - if [ ${DISTRO_NAME} == "debian" ];then + - export CFLAGS+=" -Wsign-compare -Wunused-parameter" - cppcheck --enable=warning,style,performance,portability,information,missingInclude -i'mate-desktop-1.23.2' -i'mate-settings-daemon-1.23.1' . - fi + - ./autogen.sh + - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum + - scan-build $CHECKERS --keep-cc -o html-report make -j $(( $CPU_COUNT + 1 )) + after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude -i'mate-desktop-1.23.2' -i'mate-settings-daemon-1.23.1' . -- cgit v1.2.1