From 9dc601cf7a689fe6eef23189edf0c8a9c38dcfe1 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Tue, 9 Apr 2024 19:37:36 +0900 Subject: utils: ipc: Fix event functions with no parameters If an event function is defined with no parameters, there would be a compilation error complaining about unused parameters in the generated code for the data and dataSize parameters that would normally correspond to serialized data. Fix this by simply marking the parameters as maybe_unused. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart --- utils/ipc/generators/libcamera_templates/module_ipa_proxy.cpp.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ipc/generators/libcamera_templates/module_ipa_proxy.cpp.tmpl b/utils/ipc/generators/libcamera_templates/module_ipa_proxy.cpp.tmpl index c37c4941..238cf4a5 100644 --- a/utils/ipc/generators/libcamera_templates/module_ipa_proxy.cpp.tmpl +++ b/utils/ipc/generators/libcamera_templates/module_ipa_proxy.cpp.tmpl @@ -235,8 +235,8 @@ void {{proxy_name}}::recvMessage(const IPCMessage &data) } void {{proxy_name}}::{{method.mojom_name}}IPC( - std::vector::const_iterator data, - size_t dataSize, + [[maybe_unused]] std::vector::const_iterator data, + [[maybe_unused]] size_t dataSize, [[maybe_unused]] const std::vector &fds) { {%- for param in method.parameters %} -- cgit v1.2.1