diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-18 13:10:13 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-18 13:10:13 +0300 |
commit | d3acac16e664b5b36d5f7eb0c857bb400fdbdac8 (patch) | |
tree | 46220ee9297d7bb70f569ca69f3e814bc9ac91da /cmake | |
parent | e88418ab7f1a2979ccb1ef92b4cd7da87f5cd6c5 (diff) | |
download | PrismLauncher-d3acac16e664b5b36d5f7eb0c857bb400fdbdac8.tar.gz PrismLauncher-d3acac16e664b5b36d5f7eb0c857bb400fdbdac8.tar.bz2 PrismLauncher-d3acac16e664b5b36d5f7eb0c857bb400fdbdac8.zip |
added -Wno-gnu-zero-variadic-macro-arguments and fixed more warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/CompilerWarnings.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 635e5428..0ded8fd6 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -90,6 +90,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() |