We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f764f12 commit 2dcda5aCopy full SHA for 2dcda5a
src/google/protobuf/descriptor.cc
@@ -6588,9 +6588,9 @@ FileDescriptor* DescriptorBuilder::BuildFileImpl(
6588
SuggestFieldNumbers(result, proto);
6589
}
6590
6591
- if (!unknown_option_dependencies.empty() && !options_to_interpret_.empty()) {
6592
- // If there are unknown option dependencies, we should report an error
6593
- // if there are any uninterpreted options.
+ if (!options_to_interpret_.empty()) {
+ // If there are options to interpret, report an error on any unknown option
+ // dependencies.
6594
for (const std::string& name : unknown_option_dependencies) {
6595
AddImportError(proto, name);
6596
0 commit comments