James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame^] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Johnson <johnson.peter@gmail.com> |
| 3 | Date: Tue, 13 Jun 2023 23:56:15 -0700 |
| 4 | Subject: [PATCH 08/11] Disable MSVC switch warning |
| 5 | |
| 6 | --- |
| 7 | src/google/protobuf/generated_message_reflection.cc | 4 ++++ |
| 8 | 1 file changed, 4 insertions(+) |
| 9 | |
| 10 | diff --git a/src/google/protobuf/generated_message_reflection.cc b/src/google/protobuf/generated_message_reflection.cc |
| 11 | index 2a807e066bb748f214e008971309ef15473344b5..599dde80b671085d87ff1812929cafe8d2aecf75 100644 |
| 12 | --- a/src/google/protobuf/generated_message_reflection.cc |
| 13 | +++ b/src/google/protobuf/generated_message_reflection.cc |
| 14 | @@ -75,6 +75,10 @@ using google::protobuf::internal::RepeatedPtrFieldBase; |
| 15 | using google::protobuf::internal::StringSpaceUsedExcludingSelfLong; |
| 16 | using google::protobuf::internal::WrappedMutex; |
| 17 | |
| 18 | +#ifdef _MSC_VER |
| 19 | +#pragma warning(disable : 4065) |
| 20 | +#endif |
| 21 | + |
| 22 | namespace google { |
| 23 | namespace protobuf { |
| 24 | |