From 40f338be671cb087b0cd7e223aa6100df908128c Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 18 Nov 2022 21:39:51 +0100 Subject: apps: cam: kms: Avoid 'unused-parameter' warnings The parameter 'request' is only used in an assert. assert is only defined for debug builds and release builds will not use the parameter, resulting in warnings messages only for non-debug builds. Fix this by flagging the parameter as 'maybe_unused'. Signed-off-by: Christian Rauch Reviewed-by: Laurent Pinchart Reviewed-by: Umang Jain Signed-off-by: Laurent Pinchart --- src/apps/cam/kms_sink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/cam/kms_sink.cpp b/src/apps/cam/kms_sink.cpp index 754b061e..353209cd 100644 --- a/src/apps/cam/kms_sink.cpp +++ b/src/apps/cam/kms_sink.cpp @@ -517,7 +517,7 @@ bool KMSSink::processRequest(libcamera::Request *camRequest) return false; } -void KMSSink::requestComplete(DRM::AtomicRequest *request) +void KMSSink::requestComplete([[maybe_unused]] DRM::AtomicRequest *request) { std::lock_guard lock(lock_); -- cgit v1.2.1