|
|
|
@ -420,15 +420,33 @@ if (WIN32)
|
|
|
|
|
set_target_properties(openmw PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:CONSOLE")
|
|
|
|
|
|
|
|
|
|
# Play a bit with the warning levels
|
|
|
|
|
|
|
|
|
|
set(WARNINGS "/Wall") # Since windows can only disable specific warnings, not enable them
|
|
|
|
|
|
|
|
|
|
set(WARNINGS_DISABLE
|
|
|
|
|
4099 # Type mismatch, forward definition of a class is really a struct
|
|
|
|
|
4244 4305 # Storing value of one type in variable of another
|
|
|
|
|
4309 # Variable overflow, trying to store 128 in a char for example
|
|
|
|
|
# Some unneeded and sometimes completely retarded warnings that /Wall enables
|
|
|
|
|
4820 4514 4710 4986 4668 4625 4626 4571 4640 4548 4512 4350 4917 4619 4061
|
|
|
|
|
4623 4263 4264 4266 4996 4347 4628 4510 4610
|
|
|
|
|
|
|
|
|
|
4099 # Type mismatch, declared class or struct defined with other type
|
|
|
|
|
4100 # Unreferenced formal parameter (-Wunused-parameter)
|
|
|
|
|
4127 # Conditional expression is constant
|
|
|
|
|
4146 # Unary minus on unsigned type, result still unsigned
|
|
|
|
|
4242 # Storing value in a variable of a smaller type, possible loss of data
|
|
|
|
|
4244 # Storing value of one type in variable of another (double in float, size_t in int, etc.)
|
|
|
|
|
4265 # Class has virtual functions but no virtual desctructor (-Wnon-virtual-dtor)
|
|
|
|
|
4305 # Truncating value (double -> float for example)
|
|
|
|
|
4309 # Variable overflow, trying to store 128 in a char for example
|
|
|
|
|
4355 # Using 'this' in member initialization list
|
|
|
|
|
4365 # Variable signed/unsigned mismatch
|
|
|
|
|
4701 # Potentially uninitialized local variable used
|
|
|
|
|
4702 # Unreachable code
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
foreach(d ${WARNINGS_DISABLE})
|
|
|
|
|
set(WARNINGS "${WARNINGS} /wd${d}")
|
|
|
|
|
endforeach(d)
|
|
|
|
|
|
|
|
|
|
set_target_properties(components PROPERTIES COMPILE_FLAGS ${WARNINGS})
|
|
|
|
|
set_target_properties(omwlauncher PROPERTIES COMPILE_FLAGS ${WARNINGS})
|
|
|
|
|
set_target_properties(openmw PROPERTIES COMPILE_FLAGS ${WARNINGS})
|
|
|
|
|