Skip to content

Commit 53db7d3

Browse files
author
Steven Noonan
committed
cmake: silence some more MSVC warnings
Signed-off-by: Steven Noonan <[email protected]>
1 parent b392e95 commit 53db7d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ macro(gamenetworkingsockets_common GNS_TARGET)
227227
target_compile_options(${GNS_TARGET} PRIVATE
228228
/EHs-c- # Disable C++ exceptions
229229
/GR- # Disable RTTI
230+
231+
# Below are warnings we can't fix and don't want to see (mostly from protobuf, some from MSVC standard library)
230232
/wd4146 # include/google/protobuf/wire_format_lite.h(863): warning C4146: unary minus operator applied to unsigned type, result still unsigned
233+
/wd4530 # .../xlocale(319): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
234+
/wd4244 # google/protobuf/wire_format_lite.h(935): warning C4244: 'argument': conversion from 'google::protobuf::uint64' to 'google::protobuf::uint32', possible loss of data
231235
/wd4251 # 'google::protobuf::io::CodedOutputStream::default_serialization_deterministic_': struct 'std::atomic<bool>' needs to have dll-interface to be used by clients of class
232236
)
233237
if(NOT TARGET_TYPE STREQUAL STATIC_LIBRARY)

0 commit comments

Comments
 (0)