mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Suppress more thirdparty warnings
Only applied on thirdparty code.
This commit is contained in:
parent
9e9d3342b3
commit
e673b1e180
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user