Suppress more thirdparty warnings

Only applied on thirdparty code.
This commit is contained in:
Kawe Mazidjatari 2023-07-28 16:44:52 +02:00
parent 9e9d3342b3
commit e673b1e180

View File

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