From 1700cafcd5582fb6bcd356904c7af84cd0b554c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Tue, 15 Aug 2023 13:19:31 +0200 Subject: [PATCH] GHA: Linux: enforce the override keyword If every method declares if it overrides something, mistakes leading to actually nothing being overridden don't happen. --- .github/workflows/linux.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linux.bash b/.github/workflows/linux.bash index fe0e7d551a8..1ae8b0b7240 100755 --- a/.github/workflows/linux.bash +++ b/.github/workflows/linux.bash @@ -82,6 +82,7 @@ cd /icinga2/build cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS='-Werror=suggest-override' \ -DICINGA2_UNITY_BUILD=ON \ -DUSE_SYSTEMD=ON \ -DICINGA2_USER=$(id -un) \