mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
[platform] msvc.cmake: Disable some more warnings that are causing errors now.
Disabled these warnings: - C4005: macro redefinition (libpng's intprefix.out.tf1 is breaking on this...) - C4091: 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared - C4800: 'BOOL': forcing value to bool 'true' or 'false' (performance warning) TODO: - Re-enable C4800 as not-an-error? - Figure out how to fix libpng's C4005 warnings.
This commit is contained in:
parent
dd4251101c
commit
f3bdc04bd9
@ -10,7 +10,10 @@ ENDIF(NOT CMAKE_SYSTEM_VERSION)
|
||||
|
||||
# Disable useless warnings:
|
||||
# - MSVC "logo" messages
|
||||
# - C4005: macro redefinition (libpng's intprefix.out.tf1 is breaking on this...)
|
||||
# - C4091: 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared
|
||||
# - C4355: 'this' used in base member initializer list (used for Qt Dpointer pattern)
|
||||
# - C4800: 'BOOL': forcing value to bool 'true' or 'false' (performance warning)
|
||||
# - MSVCRT "deprecated" functions
|
||||
# - std::tr1 deprecation
|
||||
# Increase some warnings to errors:
|
||||
@ -19,7 +22,7 @@ ENDIF(NOT CMAKE_SYSTEM_VERSION)
|
||||
# - C4024: 'function': different types for formal and actual parameter n
|
||||
# - C4047: 'function': 'parameter' differs in levels of indirection from 'argument'
|
||||
# - C4477: 'function' : format string 'string' requires an argument of type 'type', but variadic argument number has type 'type'
|
||||
SET(RP_C_FLAGS_COMMON "/nologo /W3 /WX /wd4355 /we4013 /we4024 /we4047 /we4477")
|
||||
SET(RP_C_FLAGS_COMMON "/nologo /W3 /WX /wd4005 /wd4091 /wd4355 /wd4800 /we4013 /we4024 /we4047 /we4477")
|
||||
SET(RP_CXX_FLAGS_COMMON "${RP_C_FLAGS_COMMON} -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING")
|
||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
|
||||
# NOTE: /TSAWARE is automatically set for Windows 2000 and later. (as of at least Visual Studio .NET 2003)
|
||||
|
Loading…
Reference in New Issue
Block a user