From patchwork Sat Oct 26 21:17:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2228 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 223D760C0F for ; Sat, 26 Oct 2019 23:17:55 +0200 (CEST) Received: from pendragon.ideasonboard.com (143.121.2.93.rev.sfr.net [93.2.121.143]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A044E325 for ; Sat, 26 Oct 2019 23:17:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1572124674; bh=Dp4A1x1byeU6mouraFKOQONhnDfYL9J1rVvsKQ8AlYE=; h=From:To:Subject:Date:From; b=IPjoOaGhbVMFsahV9+A+P9nuVroHKMKuyQeoD7uSQ6jAW19VlZzv9mQ4pP6qkGlTb O8iLo0usElhs8N0Rtxowo8e6KVx8385Rs2F0S13Q/W39igzshyyEkEEebxC7TkhnYH yE53MYb9MqSzUbG9JZ9LK9106A/i0V01wV1OWyRQ= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sun, 27 Oct 2019 00:17:43 +0300 Message-Id: <20191026211743.12963-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: bound_method: Fix compiler warning due to unused arguments X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2019 21:17:55 -0000 The BoundStaticMethod::invoke() method is never used, but must still be implemented as the base class defines it as pure virtual. As it doesn't use its arguments, the compiler generates a warning. Fix it. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/libcamera/bound_method.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/bound_method.h b/include/libcamera/bound_method.h index 54c40fc52e3b..8ebaadbec887 100644 --- a/include/libcamera/bound_method.h +++ b/include/libcamera/bound_method.h @@ -119,7 +119,7 @@ public: bool match(void (*func)(Args...)) const { return func == func_; } void activate(Args... args) { (*func_)(args...); } - void invoke(Args... args) {} + void invoke(Args...) {} private: void (*func_)(Args...);