From 9d66ffc085e4e8fd8d24fd196b70d88c7d0b0b7e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 26 Oct 2019 21:58:52 +0300 Subject: libcamera: bound_method: Fix compiler warning due to unused arguments 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 54c40fc5..8ebaadbe 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...); -- cgit v1.2.1