Commit 918e3ee8 authored by Austin Schuh's avatar Austin Schuh

Fixed Unused Parameter warning in headers.

parent 53d202f5
...@@ -1280,11 +1280,11 @@ class LIBPROTOBUF_EXPORT DescriptorPool { ...@@ -1280,11 +1280,11 @@ class LIBPROTOBUF_EXPORT DescriptorPool {
// Reports a warning in the FileDescriptorProto. Use this function if the // Reports a warning in the FileDescriptorProto. Use this function if the
// problem occured should NOT interrupt building the FileDescriptorProto. // problem occured should NOT interrupt building the FileDescriptorProto.
virtual void AddWarning( virtual void AddWarning(
const string& filename, // File name in which the error occurred. const string& /*filename*/, // File name in which the error occurred.
const string& element_name, // Full name of the erroneous element. const string& /*element_name*/, // Full name of the erroneous element.
const Message* descriptor, // Descriptor of the erroneous element. const Message* /*descriptor*/, // Descriptor of the erroneous element.
ErrorLocation location, // One of the location constants, above. ErrorLocation /*location*/, // One of the location constants, above.
const string& message // Human-readable error message. const string& /*message*/ // Human-readable error message.
) {} ) {}
private: private:
......
...@@ -389,19 +389,19 @@ class LIBPROTOBUF_EXPORT Reflection { ...@@ -389,19 +389,19 @@ class LIBPROTOBUF_EXPORT Reflection {
// is set, false otherwise. // is set, false otherwise.
// TODO(jieluo) - make it pure virtual after updating all // TODO(jieluo) - make it pure virtual after updating all
// the subclasses. // the subclasses.
virtual bool HasOneof(const Message& message, virtual bool HasOneof(const Message& /*message*/,
const OneofDescriptor* oneof_descriptor) const { const OneofDescriptor* /*oneof_descriptor*/) const {
return false; return false;
} }
virtual void ClearOneof(Message* message, virtual void ClearOneof(Message* /*message*/,
const OneofDescriptor* oneof_descriptor) const {} const OneofDescriptor* /*oneof_descriptor*/) const {}
// Returns the field descriptor if the oneof is set. NULL otherwise. // Returns the field descriptor if the oneof is set. NULL otherwise.
// TODO(jieluo) - make it pure virtual. // TODO(jieluo) - make it pure virtual.
virtual const FieldDescriptor* GetOneofFieldDescriptor( virtual const FieldDescriptor* GetOneofFieldDescriptor(
const Message& message, const Message& /*message*/,
const OneofDescriptor* oneof_descriptor) const { const OneofDescriptor* /*oneof_descriptor*/) const {
return NULL; return NULL;
} }
......
...@@ -83,7 +83,8 @@ inline int CalculateReserve(Iter begin, Iter end, std::forward_iterator_tag) { ...@@ -83,7 +83,8 @@ inline int CalculateReserve(Iter begin, Iter end, std::forward_iterator_tag) {
} }
template <typename Iter> template <typename Iter>
inline int CalculateReserve(Iter begin, Iter end, std::input_iterator_tag) { inline int CalculateReserve(Iter /*begin*/, Iter /*end*/,
std::input_iterator_tag) {
return -1; return -1;
} }
......
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