Quellcode durchsuchen

input_common: Ignore boost uninitialized local variable

Narr the Reg vor 4 Jahren
Ursprung
Commit
17bff6bf57
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  1. 9 0
      src/input_common/helpers/udp_protocol.h

+ 9 - 0
src/input_common/helpers/udp_protocol.h

@@ -8,8 +8,17 @@
 #include <optional>
 #include <type_traits>
 
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4701) // Potentially uninitialized local variable 'result' used
+#endif
+
 #include <boost/crc.hpp>
 
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
 #include "common/swap.h"
 
 namespace InputCommon::CemuhookUDP {