Merge pull request #513 from fowles/main

Small fixes to compile with stricter warnings
pull/13171/head
Matt Fowles Kulukundis 3 years ago committed by GitHub
commit 9d6a72c1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      upb/test_table.cc
  2. 2
      upbc/protoc-gen-upb.cc

@ -354,7 +354,6 @@ class TypedIntTable {
} // namespace upb
bool benchmark = false;
#define CPU_TIME_PER_TEST 0.5
using std::vector;

@ -312,7 +312,7 @@ bool HasNonZeroDefault(const protobuf::FieldDescriptor* field) {
return field->default_value_enum()->number() != 0;
}
ABSL_ASSERT(false);
return "XXX";
return false;
}
std::string FieldDefault(const protobuf::FieldDescriptor* field) {

Loading…
Cancel
Save