Skip to content

Commit

Permalink
Explicitly identify superclass in initializer lists for generated mes…
Browse files Browse the repository at this point in the history
…sage

classes.  This avoids a warning when using GCC's -pedantic option.
  • Loading branch information
[email protected] committed Sep 23, 2008
1 parent 4410396 commit a69deb6
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 32 deletions.
3 changes: 3 additions & 0 deletions src/google/protobuf/compiler/cpp/cpp_message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ GenerateInitializerList(io::Printer* printer) {
printer->Indent();
printer->Indent();

printer->Print(
"::google::protobuf::Message(),\n");

if (descriptor_->extension_range_count() > 0) {
printer->Print(
"_extensions_(&$classname$_descriptor_,\n"
Expand Down
96 changes: 64 additions & 32 deletions src/google/protobuf/descriptor.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a69deb6

Please sign in to comment.