From aaf337b83f7e737248bfa6ecdb88b19ea6aae711 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 14 Jan 2022 13:51:12 +0100 Subject: .build.yml: Drop extra compilation flags and build with -Werror --- .build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.build.yml b/.build.yml index 837dc50..2f95896 100644 --- a/.build.yml +++ b/.build.yml @@ -81,15 +81,14 @@ variables: 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 - - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON + - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=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