aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-01-14 13:51:12 +0100
committerRobert Tari <robert@tari.in>2022-01-14 14:03:31 +0100
commitaaf337b83f7e737248bfa6ecdb88b19ea6aae711 (patch)
treeaadc2ec00194bb08087b92e1f1ae1783314836cf
parentb6278e2421712b04892001f8cf866a09580f309e (diff)
downloadayatana-ido-aaf337b83f7e737248bfa6ecdb88b19ea6aae711.tar.gz
ayatana-ido-aaf337b83f7e737248bfa6ecdb88b19ea6aae711.tar.bz2
ayatana-ido-aaf337b83f7e737248bfa6ecdb88b19ea6aae711.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 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