diff options
Diffstat (limited to 'cmake/CompilerWarnings.cmake')
-rw-r--r-- | cmake/CompilerWarnings.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index 8137f6f..96e0cde 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -18,6 +18,10 @@ function(set_project_warnings project_name) # declared in the for-loop is used outside the for-loop scope /w14296 # 'operator': expression is always 'boolean_value' /w14311 # 'variable': pointer truncation from 'type1' to 'type2' + /w14456 # declaration of 'name' hides previous local declaration + /w14457 # declaration of 'name' hides function parameter + /w14458 # declaration of 'name' hides class member + /w14459 # declaration of 'name' hides global declaration /w14545 # expression before comma evaluates to a function which is missing # an argument list /w14546 # function call before comma missing argument list @@ -64,6 +68,9 @@ function(set_project_warnings project_name) -Wno-format-nonliteral -Wno-shorten-64-to-32 + # allow comma removal for empty __VA_ARGS__ in ,##__VA_ARGS__ + -Wno-gnu-zero-variadic-macro-arguments + # enable to turn warnings into errors #-Werror ) |