aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-12-17 14:22:39 +0100
committerRobert Tari <robert@tari.in>2021-12-17 14:32:57 +0100
commit6cf760460cfa3bdc126e8a6699e654f36d314205 (patch)
treece058cc598058adcfba7c68526eac30e106535cd
parentf34268959a993ca6e1070a8ca36c319fc205d05a (diff)
downloadayatana-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
-rw-r--r--.build.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.build.yml b/.build.yml
index 88c9e78..955779a 100644
--- a/.build.yml
+++ b/.build.yml
@@ -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