Commit b2b65842 authored by Andy Hochhaus's avatar Andy Hochhaus

Silence compile warnings in bazel

parent c0c3aee6
...@@ -14,7 +14,7 @@ COPTS = [ ...@@ -14,7 +14,7 @@ COPTS = [
"-Wwrite-strings", "-Wwrite-strings",
"-Woverloaded-virtual", "-Woverloaded-virtual",
"-Wno-sign-compare", "-Wno-sign-compare",
"-Wno-error=unused-function", "-Wno-unused-function",
] ]
config_setting( config_setting(
......
...@@ -3804,7 +3804,7 @@ GenerateIsInitialized(io::Printer* printer) { ...@@ -3804,7 +3804,7 @@ GenerateIsInitialized(io::Printer* printer) {
if (descriptor_->extension_range_count() > 0) { if (descriptor_->extension_range_count() > 0) {
printer->Print( printer->Print(
"\n" "\n"
"if (!_extensions_.IsInitialized()) return false;"); "if (!_extensions_.IsInitialized()) return false;\n");
} }
printer->Outdent(); printer->Outdent();
......
...@@ -8937,7 +8937,8 @@ bool FileOptions::IsInitialized() const { ...@@ -8937,7 +8937,8 @@ bool FileOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void FileOptions::Swap(FileOptions* other) {
...@@ -9902,7 +9903,8 @@ bool MessageOptions::IsInitialized() const { ...@@ -9902,7 +9903,8 @@ bool MessageOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void MessageOptions::Swap(MessageOptions* other) {
...@@ -10601,7 +10603,8 @@ bool FieldOptions::IsInitialized() const { ...@@ -10601,7 +10603,8 @@ bool FieldOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void FieldOptions::Swap(FieldOptions* other) {
...@@ -11052,7 +11055,8 @@ bool OneofOptions::IsInitialized() const { ...@@ -11052,7 +11055,8 @@ bool OneofOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void OneofOptions::Swap(OneofOptions* other) {
...@@ -11446,7 +11450,8 @@ bool EnumOptions::IsInitialized() const { ...@@ -11446,7 +11450,8 @@ bool EnumOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void EnumOptions::Swap(EnumOptions* other) {
...@@ -11833,7 +11838,8 @@ bool EnumValueOptions::IsInitialized() const { ...@@ -11833,7 +11838,8 @@ bool EnumValueOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void EnumValueOptions::Swap(EnumValueOptions* other) {
...@@ -12195,7 +12201,8 @@ bool ServiceOptions::IsInitialized() const { ...@@ -12195,7 +12201,8 @@ bool ServiceOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void ServiceOptions::Swap(ServiceOptions* other) {
...@@ -12557,7 +12564,8 @@ bool MethodOptions::IsInitialized() const { ...@@ -12557,7 +12564,8 @@ bool MethodOptions::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; 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) { void MethodOptions::Swap(MethodOptions* other) {
......
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