浏览代码

Removed unused-parameter warning

Christian Maurer 6 年之前
父节点
当前提交
b9f405ae46
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/google/protobuf/descriptor_database.h
  2. 1 1
      src/google/protobuf/stubs/bytestream.h

+ 1 - 1
src/google/protobuf/descriptor_database.h

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

+ 1 - 1
src/google/protobuf/stubs/bytestream.h

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