Disable warnings about unused const variables

as these are usually just used in another compile unit
This commit is contained in:
Martchus 2021-03-22 13:19:45 +01:00
parent b43de126b9
commit e2a7d807a3
1 changed files with 5 additions and 3 deletions

View File

@ -650,10 +650,12 @@ set(CLANG_WARNINGS
-Wnull-dereference # warn if a null dereference is detected
-Wdouble-promotion # warn if float is implicit promoted to double
-Wformat=2 # warn on security issues around functions that format output (ie printf)
-Wno-pedantic # warn NOT if non-standard C++ is used, some vendor extensions are very useful
-Wno-pedantic # warn NOT if non-standard C++ is used (some vendor extensions are very useful)
-Wno-missing-field-initializers # warn NOT about missing field initializers
-Wno-useless-cast # warn NOT about useless cases as this is sometimes very useful in templates
-Wno-unknown-warning-option # warn NOT about unknown warning options
-Wno-useless-cast # warn NOT about useless cases (this is sometimes very useful in templates)
-Wno-unused-const-variable # warn NOT about unused constants (usually used in other compile unit)
-Wno-unknown-warning-option # warn NOT about unknown warning options (depending on compiler/version not all are
# available)
)
set(GCC_WARNINGS
${CLANG_WARNINGS}