diff options
author | Feng Xiao <xiaofeng@google.com> | 2016-10-09 08:47:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-09 08:47:59 -0700 |
commit | 337a028bb65ccca4dda768695950b5aba53ae2c9 (patch) | |
tree | 0567e0405d9b1c77f9fe078e741d60b5cb9d69ed | |
parent | c0c3aee6b9ae3f4f2fc30370365002babc5d106b (diff) | |
parent | b2b65842ea9ba7c994385dfc82cf14d209713909 (diff) |
Merge pull request #2236 from hochhaus/master
Silence compile warnings in bazel
-rw-r--r-- | BUILD | 2 | ||||
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_message.cc | 2 | ||||
-rw-r--r-- | src/google/protobuf/descriptor.pb.cc | 24 |
3 files changed, 18 insertions, 10 deletions
@@ -14,7 +14,7 @@ COPTS = [ "-Wwrite-strings", "-Woverloaded-virtual", "-Wno-sign-compare", - "-Wno-error=unused-function", + "-Wno-unused-function", ] config_setting( diff --git a/src/google/protobuf/compiler/cpp/cpp_message.cc b/src/google/protobuf/compiler/cpp/cpp_message.cc index 0034b121..1f1a0f1c 100644 --- a/src/google/protobuf/compiler/cpp/cpp_message.cc +++ b/src/google/protobuf/compiler/cpp/cpp_message.cc @@ -3804,7 +3804,7 @@ GenerateIsInitialized(io::Printer* printer) { if (descriptor_->extension_range_count() > 0) { printer->Print( "\n" - "if (!_extensions_.IsInitialized()) return false;"); + "if (!_extensions_.IsInitialized()) return false;\n"); } printer->Outdent(); diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index 56c3b7fb..13e8776f 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -8937,7 +8937,8 @@ bool FileOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void FileOptions::Swap(FileOptions* other) { @@ -9902,7 +9903,8 @@ bool MessageOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void MessageOptions::Swap(MessageOptions* other) { @@ -10601,7 +10603,8 @@ bool FieldOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void FieldOptions::Swap(FieldOptions* other) { @@ -11052,7 +11055,8 @@ bool OneofOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void OneofOptions::Swap(OneofOptions* other) { @@ -11446,7 +11450,8 @@ bool EnumOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void EnumOptions::Swap(EnumOptions* other) { @@ -11833,7 +11838,8 @@ bool EnumValueOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void EnumValueOptions::Swap(EnumValueOptions* other) { @@ -12195,7 +12201,8 @@ bool ServiceOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void ServiceOptions::Swap(ServiceOptions* other) { @@ -12557,7 +12564,8 @@ bool MethodOptions::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; - if (!_extensions_.IsInitialized()) return false; return true; + if (!_extensions_.IsInitialized()) return false; + return true; } void MethodOptions::Swap(MethodOptions* other) { |