diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2018-05-14 17:17:27 -0600 |
---|---|---|
committer | Robert Hancock <hancock@sedsystems.ca> | 2018-05-14 17:17:27 -0600 |
commit | 29ad3002cb3490b3fe6cd44eb0ded0f5408f29ba (patch) | |
tree | 5e4ce53e55ca540657f11959202a4cf740245028 /src/google/protobuf/descriptor.pb.cc | |
parent | ac34bf8f5935b46119750b50f0c84f8fa7211479 (diff) | |
download | protobuf-29ad3002cb3490b3fe6cd44eb0ded0f5408f29ba.tar.gz protobuf-29ad3002cb3490b3fe6cd44eb0ded0f5408f29ba.tar.bz2 protobuf-29ad3002cb3490b3fe6cd44eb0ded0f5408f29ba.zip |
Declare some generated C++ methods as static #4602
This avoids compile warnings when compiling generated code with the
-Wmissing-declarations option.
Diffstat (limited to 'src/google/protobuf/descriptor.pb.cc')
-rw-r--r-- | src/google/protobuf/descriptor.pb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index 59b04aba..32ef623f 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -1077,14 +1077,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_GeneratedCodeInfo_default_instance_), }; -void protobuf_AssignDescriptors() { +static void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "google/protobuf/descriptor.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, file_level_enum_descriptors, NULL); } -void protobuf_AssignDescriptorsOnce() { +static void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } @@ -1095,7 +1095,7 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 27); } -void AddDescriptorsImpl() { +static void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n google/protobuf/descriptor.proto\022\017goog" |