diff options
| author | 2022-04-20 20:48:40 -0400 | |
|---|---|---|
| committer | 2022-04-20 20:48:40 -0400 | |
| commit | ea07e61d3d6ff553d4a728648a140fe7ca354573 (patch) | |
| tree | 36d7ead5a5020711678070ea962a70178c957afb /src/input_common/helpers/udp_protocol.h | |
| parent | Merge pull request #8224 from Docteh/hihi1 (diff) | |
| parent | input_common: Ignore boost uninitialized local variable (diff) | |
| download | yuzu-ea07e61d3d6ff553d4a728648a140fe7ca354573.tar.gz yuzu-ea07e61d3d6ff553d4a728648a140fe7ca354573.tar.xz yuzu-ea07e61d3d6ff553d4a728648a140fe7ca354573.zip | |
Merge pull request #8231 from german77/warning
input_common: Ignore boost uninitialized local variable
Diffstat (limited to 'src/input_common/helpers/udp_protocol.h')
| -rw-r--r-- | src/input_common/helpers/udp_protocol.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input_common/helpers/udp_protocol.h b/src/input_common/helpers/udp_protocol.h index 9c205e944..597f51cd3 100644 --- a/src/input_common/helpers/udp_protocol.h +++ b/src/input_common/helpers/udp_protocol.h | |||
| @@ -8,8 +8,17 @@ | |||
| 8 | #include <optional> | 8 | #include <optional> |
| 9 | #include <type_traits> | 9 | #include <type_traits> |
| 10 | 10 | ||
| 11 | #ifdef _MSC_VER | ||
| 12 | #pragma warning(push) | ||
| 13 | #pragma warning(disable : 4701) // Potentially uninitialized local variable 'result' used | ||
| 14 | #endif | ||
| 15 | |||
| 11 | #include <boost/crc.hpp> | 16 | #include <boost/crc.hpp> |
| 12 | 17 | ||
| 18 | #ifdef _MSC_VER | ||
| 19 | #pragma warning(pop) | ||
| 20 | #endif | ||
| 21 | |||
| 13 | #include "common/swap.h" | 22 | #include "common/swap.h" |
| 14 | 23 | ||
| 15 | namespace InputCommon::CemuhookUDP { | 24 | namespace InputCommon::CemuhookUDP { |