diff options
author | Robert Tari <robert@tari.in> | 2022-01-12 20:00:58 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2022-01-12 22:50:45 +0100 |
commit | a2743f912739533299d1ceafb55f6ed9fd74d9b5 (patch) | |
tree | 4373547626af614e2cc25dbdeabd094a188ce57f | |
parent | 552f4c5c4ac08b18fe014192952dbbd2d2d2d4a1 (diff) | |
download | ayatana-indicator-messages-a2743f912739533299d1ceafb55f6ed9fd74d9b5.tar.gz ayatana-indicator-messages-a2743f912739533299d1ceafb55f6ed9fd74d9b5.tar.bz2 ayatana-indicator-messages-a2743f912739533299d1ceafb55f6ed9fd74d9b5.zip |
.build.yml: Drop extra compilation flags and build with -Werror
-rw-r--r-- | .build.yml | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |