aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-10-04 09:40:38 +0200
committerGitHub <noreply@github.com>2023-10-04 09:40:38 +0200
commit03ad43069924efbe11713f99ce43f6dad81da744 (patch)
tree87e866d42c3ab6975341aa7839ddd93e22225d84 /cmake
parentd186c34385df480988aab2a388c8889b9371c6c2 (diff)
parentd3acac16e664b5b36d5f7eb0c857bb400fdbdac8 (diff)
downloadPrismLauncher-03ad43069924efbe11713f99ce43f6dad81da744.tar.gz
PrismLauncher-03ad43069924efbe11713f99ce43f6dad81da744.tar.bz2
PrismLauncher-03ad43069924efbe11713f99ce43f6dad81da744.zip
Merge pull request #1537 from Trial97/warnings
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CompilerWarnings.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake
index 69e57b4d..c9962c44 100644
--- a/cmake/CompilerWarnings.cmake
+++ b/cmake/CompilerWarnings.cmake
@@ -89,6 +89,10 @@ function(
-Wdouble-promotion # warn if float is implicit promoted to double
-Wformat=2 # warn on security issues around functions that format output (ie printf)
-Wimplicit-fallthrough # warn on statements that fallthrough without an explicit annotation
+ # -Wgnu-zero-variadic-macro-arguments (part of -pedantic) is triggered by every qCDebug() call and therefore results
+ # in a lot of noise. This warning is only notifying us that clang is emulating the GCC behaviour
+ # instead of the exact standard wording so we can safely ignore it
+ -Wno-gnu-zero-variadic-macro-arguments
)
endif()