xref: /aosp_15_r20/external/cronet/third_party/protobuf/patches/0033-no-enum-conversion-warn.patch (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1diff --git a/src/google/protobuf/wire_format_lite.h b/src/google/protobuf/wire_format_lite.h
2index 32fe0c7711bc4..5f1a11e4e2cab 100644
3--- a/src/google/protobuf/wire_format_lite.h
4+++ b/src/google/protobuf/wire_format_lite.h
5@@ -101,7 +101,11 @@ class PROTOBUF_EXPORT WireFormatLite {
6   // identifies the encoding of this data, it is possible to skip
7   // unrecognized fields for forwards compatibility.
8
9-  enum WireType {
10+  enum WireType
11+#ifndef SWIG
12+      : int
13+#endif  // !SWIG
14+  {
15     WIRETYPE_VARINT = 0,
16     WIRETYPE_FIXED64 = 1,
17     WIRETYPE_LENGTH_DELIMITED = 2,
18