[libcamera-devel] [PATCH] libcamera: bound_method: Fix compiler warning due to unused arguments

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sat Oct 26 23:17:43 CEST 2019


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 <laurent.pinchart at ideasonboard.com>
---
 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...);
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list