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/duration.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/duration.pb.cc')
-rw-r--r-- | src/google/protobuf/duration.pb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc index ddc063db..0c67f86e 100644 --- a/src/google/protobuf/duration.pb.cc +++ b/src/google/protobuf/duration.pb.cc @@ -66,14 +66,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Duration_default_instance_), }; -void protobuf_AssignDescriptors() { +static void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "google/protobuf/duration.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } -void protobuf_AssignDescriptorsOnce() { +static void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } @@ -84,7 +84,7 @@ void protobuf_RegisterTypes(const ::std::string&) { ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } -void AddDescriptorsImpl() { +static void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\036google/protobuf/duration.proto\022\017google" |