From 9b2544d3df481bc9dd0795fb645b544ba6484216 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Wed, 7 Apr 2021 16:52:46 +0300
Subject: libcamera: bound_method: Fix type of pack for void methods

The BoundMethodPack used by the void BoundMethodArgs variant incorrectly
specified the template argument as void * instead of void. This causes
no functional problem, but results in space for an unused void * return
value being reserved. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net>
Reviewed-by: Kieran Bingham <kieran.bingham@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 95a95653..f216e3b5 100644
--- a/include/libcamera/bound_method.h
+++ b/include/libcamera/bound_method.h
@@ -174,7 +174,7 @@ template<typename T, typename... Args>
 class BoundMethodMember<T, void, Args...> : public BoundMethodArgs<void, Args...>
 {
 public:
-	using PackType = typename BoundMethodArgs<void *, Args...>::PackType;
+	using PackType = typename BoundMethodArgs<void, Args...>::PackType;
 
 	BoundMethodMember(T *obj, Object *object, void (T::*func)(Args...),
 			  ConnectionType type = ConnectionTypeAuto)
-- 
cgit v1.2.1