Fix unused parameters in cpp_helpers.cc

pull/8858/head
Adam Cozzette 3 years ago
parent 5d03f8c8a5
commit e1930cd028
  1. 16
      src/google/protobuf/compiler/cpp/cpp_helpers.cc

@ -777,8 +777,8 @@ std::string SafeFunctionName(const Descriptor* descriptor,
return function_name;
}
bool IsStringInlined(const FieldDescriptor* descriptor,
const Options& options) {
bool IsStringInlined(const FieldDescriptor* /* descriptor */,
const Options& /* options */) {
return false;
}
@ -939,13 +939,15 @@ bool HasEnumDefinitions(const FileDescriptor* file) {
return false;
}
bool ShouldVerify(const Descriptor* descriptor, const Options& options,
MessageSCCAnalyzer* scc_analyzer) {
bool ShouldVerify(const Descriptor* /* descriptor */,
const Options& /* options */,
MessageSCCAnalyzer* /* scc_analyzer */) {
return false;
}
bool ShouldVerify(const FileDescriptor* file, const Options& options,
MessageSCCAnalyzer* scc_analyzer) {
bool ShouldVerify(const FileDescriptor* /* file */,
const Options& /* options */,
MessageSCCAnalyzer* /* scc_analyzer */) {
return false;
}
@ -1468,7 +1470,7 @@ FileOptions_OptimizeMode GetOptimizeFor(const FileDescriptor* file,
return FileOptions::SPEED;
}
bool EnableMessageOwnedArena(const Descriptor* desc) {
bool EnableMessageOwnedArena(const Descriptor* /* desc */) {
return false;
}

Loading…
Cancel
Save