Removed unused-parameter warning

pull/6685/head
Christian Maurer 5 years ago committed by Adam Cozzette
parent 4702ba9043
commit b9f405ae46
  1. 2
      src/google/protobuf/descriptor_database.h
  2. 2
      src/google/protobuf/stubs/bytestream.h

@ -116,7 +116,7 @@ class PROTOBUF_EXPORT DescriptorDatabase {
// //
// This method has a default implementation that always returns // This method has a default implementation that always returns
// false. // false.
virtual bool FindAllFileNames(std::vector<std::string>* output) { virtual bool FindAllFileNames(std::vector<std::string>* /*output*/) {
return false; return false;
} }

@ -274,7 +274,7 @@ class PROTOBUF_EXPORT StringByteSink : public ByteSink {
class PROTOBUF_EXPORT NullByteSink : public ByteSink { class PROTOBUF_EXPORT NullByteSink : public ByteSink {
public: public:
NullByteSink() {} NullByteSink() {}
virtual void Append(const char *data, size_t n) override {} virtual void Append(const char* /*data*/, size_t /*n*/) override {}
private: private:
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NullByteSink); GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NullByteSink);

Loading…
Cancel
Save