diff options
author | Robert Tari <robert@tari.in> | 2021-12-17 14:22:39 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-12-17 14:32:57 +0100 |
commit | 6cf760460cfa3bdc126e8a6699e654f36d314205 (patch) | |
tree | ce058cc598058adcfba7c68526eac30e106535cd /.build.yml | |
parent | f34268959a993ca6e1070a8ca36c319fc205d05a (diff) | |
download | ayatana-indicator-power-6cf760460cfa3bdc126e8a6699e654f36d314205.tar.gz ayatana-indicator-power-6cf760460cfa3bdc126e8a6699e654f36d314205.tar.bz2 ayatana-indicator-power-6cf760460cfa3bdc126e8a6699e654f36d314205.zip |
.build.yml: Drop extra compilation flags and build with -Werror
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -126,15 +126,14 @@ 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 - - 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 |