Commit dd449e1c authored by Łukasz Twarduś's avatar Łukasz Twarduś

Fix "anonymous types declared in an anonymous union are an extension"

warning when using clang with -pedantic switch
parent 99aa0f9e
...@@ -224,13 +224,16 @@ class LIBPROTOBUF_EXPORT UnknownField { ...@@ -224,13 +224,16 @@ class LIBPROTOBUF_EXPORT UnknownField {
uint32 number_; uint32 number_;
uint32 type_; uint32 type_;
union LengthDelimited {
string* string_value_;
};
union { union {
uint64 varint_; uint64 varint_;
uint32 fixed32_; uint32 fixed32_;
uint64 fixed64_; uint64 fixed64_;
mutable union { mutable union LengthDelimited length_delimited_;
string* string_value_;
} length_delimited_;
UnknownFieldSet* group_; UnknownFieldSet* group_;
}; };
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment