|
|
@@ -811,7 +811,7 @@ string* DescriptorPool::Tables::AllocateString(const string& value) {
|
|
|
}
|
|
|
|
|
|
template<typename Type>
|
|
|
-Type* DescriptorPool::Tables::AllocateMessage(Type* dummy) {
|
|
|
+Type* DescriptorPool::Tables::AllocateMessage(Type* /* dummy */) {
|
|
|
Type* result = new Type;
|
|
|
messages_.push_back(result);
|
|
|
return result;
|
|
|
@@ -3677,7 +3677,7 @@ void DescriptorBuilder::BuildEnumValue(const EnumValueDescriptorProto& proto,
|
|
|
}
|
|
|
|
|
|
void DescriptorBuilder::BuildService(const ServiceDescriptorProto& proto,
|
|
|
- const void* dummy,
|
|
|
+ const void* /* dummy */,
|
|
|
ServiceDescriptor* result) {
|
|
|
string* full_name = tables_->AllocateString(file_->package());
|
|
|
if (!full_name->empty()) full_name->append(1, '.');
|
|
|
@@ -3957,7 +3957,8 @@ void DescriptorBuilder::CrossLinkEnum(
|
|
|
}
|
|
|
|
|
|
void DescriptorBuilder::CrossLinkEnumValue(
|
|
|
- EnumValueDescriptor* enum_value, const EnumValueDescriptorProto& proto) {
|
|
|
+ EnumValueDescriptor* enum_value,
|
|
|
+ const EnumValueDescriptorProto& /* proto */) {
|
|
|
if (enum_value->options_ == NULL) {
|
|
|
enum_value->options_ = &EnumValueOptions::default_instance();
|
|
|
}
|
|
|
@@ -4158,7 +4159,8 @@ void DescriptorBuilder::ValidateEnumOptions(EnumDescriptor* enm,
|
|
|
}
|
|
|
|
|
|
void DescriptorBuilder::ValidateEnumValueOptions(
|
|
|
- EnumValueDescriptor* enum_value, const EnumValueDescriptorProto& proto) {
|
|
|
+ EnumValueDescriptor* /* enum_value */,
|
|
|
+ const EnumValueDescriptorProto& /* proto */) {
|
|
|
// Nothing to do so far.
|
|
|
}
|
|
|
void DescriptorBuilder::ValidateServiceOptions(ServiceDescriptor* service,
|
|
|
@@ -4176,8 +4178,8 @@ void DescriptorBuilder::ValidateServiceOptions(ServiceDescriptor* service,
|
|
|
VALIDATE_OPTIONS_FROM_ARRAY(service, method, Method);
|
|
|
}
|
|
|
|
|
|
-void DescriptorBuilder::ValidateMethodOptions(MethodDescriptor* method,
|
|
|
- const MethodDescriptorProto& proto) {
|
|
|
+void DescriptorBuilder::ValidateMethodOptions(MethodDescriptor* /* method */,
|
|
|
+ const MethodDescriptorProto& /* proto */) {
|
|
|
// Nothing to do so far.
|
|
|
}
|
|
|
|
|
|
@@ -4805,14 +4807,16 @@ class AggregateErrorCollector : public io::ErrorCollector {
|
|
|
public:
|
|
|
string error_;
|
|
|
|
|
|
- virtual void AddError(int line, int column, const string& message) {
|
|
|
+ virtual void AddError(int /* line */, int /* column */,
|
|
|
+ const string& message) {
|
|
|
if (!error_.empty()) {
|
|
|
error_ += "; ";
|
|
|
}
|
|
|
error_ += message;
|
|
|
}
|
|
|
|
|
|
- virtual void AddWarning(int line, int column, const string& message) {
|
|
|
+ virtual void AddWarning(int /* line */, int /* column */,
|
|
|
+ const string& /* message */) {
|
|
|
// Ignore warnings
|
|
|
}
|
|
|
};
|