From 7006b075c3c6a502ade0139a309cb8bb517e51bc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 20 May 2022 09:48:48 +0200 Subject: [PATCH] util/AllocatedArray: fix -Wunused-parameter --- src/util/AllocatedArray.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx index 86a703511..0a2240d1b 100644 --- a/src/util/AllocatedArray.hxx +++ b/src/util/AllocatedArray.hxx @@ -107,7 +107,7 @@ public: return *this; } - AllocatedArray &operator=(std::nullptr_t n) noexcept { + AllocatedArray &operator=(std::nullptr_t) noexcept { delete[] buffer.data(); buffer = {}; return *this;