@@ -94,16 +94,17 @@ if(MSVC)
9494 add_compile_options ("/wd4267" )
9595
9696 # suppress C4251 - VC++ will warn when exporting an entire class which contains members
97- # referencing unexported compound types is unsafe. because we don't guarantee a stable API
98- # for our exports, we don't really care about this, so we choose to be lazy and continue to
99- # export entire classes instead of exporting on a method-by-method basis
97+ # referencing unexported compound types as this is potentially unsafe. because we don't
98+ # guarantee a stable ABI for exports, we don't really care about this, and so we choose to
99+ # be lazy and continue to export entire classes instead of exporting on a method-by-method basis
100100 add_compile_options ("/wd4251" )
101101
102102 # suppress C4068 - VC++ will warn for unknown pragmas by default. this is equivalent to gcc
103- # -Wno-unknown-pragmas. we could work around this with sufficiently complex macros
103+ # -Wno-unknown-pragmas (which is enabled for gcc below).
104+ # we could work around this with sufficiently complex macros
104105 add_compile_options ("/wd4068" )
105106
106- # suppress C4244 - VC++ warns by default (with /Wall ) about narrowing conversions that may lose data
107+ # suppress C4244 - VC++ warns by default (with /W3 ) about narrowing conversions that may lose data
107108 # (such as double -> int or int32_t -> int16_t). dfhack has many of these, mostly related to Lua
108109 # this is equivalent to gcc -Wno_conversions which is the default as gcc -Wall doesn't enable -Wconversions
109110 add_compile_options ("/wd4244" )
0 commit comments