diff --git a/r5dev/cmake/Macros.cmake b/r5dev/cmake/Macros.cmake index 5e189933..5b29f95a 100644 --- a/r5dev/cmake/Macros.cmake +++ b/r5dev/cmake/Macros.cmake @@ -135,6 +135,7 @@ macro( thirdparty_suppress_warnings ) if( MSVC OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) target_compile_options( ${PROJECT_NAME} PRIVATE /wd4100 # Unreferenced formal parameter. + /wd4131 # Using old-style declarations /wd4152 # Function/data pointer conversion in expression. /wd4200 # Zero-sized array in union; SDL2 uses this for compiler compatibility. /wd4201 # Nameless struct/union. @@ -142,6 +143,8 @@ macro( thirdparty_suppress_warnings ) /wd4267 # Type conversion truncation; protobuf has many, but this appears intentional. /wd4307 # Integral constant overflow. /wd4389 # Signed/unsigned mismatch. + /wd4456 # Declaration hides previous local declaration. + /wd4457 # Declaration hides function parameter. /wd4505 # Unreferenced local function has been removed. ) endif()