summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-26 21:58:52 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-27 00:39:07 +0300
commit9d66ffc085e4e8fd8d24fd196b70d88c7d0b0b7e (patch)
tree2f4d073363d080250e5392b61e2949e10e50e56e
parent6a832d114e12162a4a2eb0d48a74b035db73ce4b (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--include/libcamera/bound_method.h2
1 files changed, 1 insertions, 1 deletions
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...);