diff --git a/cpp/src/arrow/array/builder_primitive.h b/cpp/src/arrow/array/builder_primitive.h index d17a13013cea..bf3ec914bec5 100644 --- a/cpp/src/arrow/array/builder_primitive.h +++ b/cpp/src/arrow/array/builder_primitive.h @@ -37,7 +37,7 @@ class ARROW_EXPORT NullBuilder : public ArrayBuilder { return Status::OK(); } - Status Append(std::nullptr_t value) { return AppendNull(); } + Status Append(std::nullptr_t) { return AppendNull(); } Status FinishInternal(std::shared_ptr* out) override; }; diff --git a/cpp/src/parquet/exception.h b/cpp/src/parquet/exception.h index 65e12af47a7c..90f6d0302d31 100644 --- a/cpp/src/parquet/exception.h +++ b/cpp/src/parquet/exception.h @@ -77,7 +77,7 @@ class ParquetException : public std::exception { explicit ParquetException(const std::string& msg) : msg_(msg) {} - explicit ParquetException(const char* msg, std::exception& e) : msg_(msg) {} + explicit ParquetException(const char* msg, std::exception&) : msg_(msg) {} ~ParquetException() throw() override {}