From a2743f912739533299d1ceafb55f6ed9fd74d9b5 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 12 Jan 2022 20:00:58 +0100 Subject: .build.yml: Drop extra compilation flags and build with -Werror --- .build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.build.yml') diff --git a/.build.yml b/.build.yml index e53999b..834eac9 100644 --- a/.build.yml +++ b/.build.yml @@ -95,15 +95,17 @@ before_scripts: build_scripts: - if [ ${DISTRO_NAME} == "debian" ];then - - export CFLAGS+=" -Wsign-compare -Wunused-parameter" - cppcheck --enable=warning,style,performance,portability,information,missingInclude . - fi - - if [ -e ./CMakeLists.txt ]; then - - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then + - if [ ${DISTRO_NAME} == "debian" ]; then + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -DENABLE_TESTS=ON + - elif [ ${DISTRO_NAME} == "ubuntu" ]; then + # Ubuntu has an old GTest which throws warnings, so we cannot use -Werror here - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON - else - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON - fi - else - exit 1 -- cgit v1.2.3