diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2022-11-18 21:39:51 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-11-19 18:03:31 +0200 |
commit | 40f338be671cb087b0cd7e223aa6100df908128c (patch) | |
tree | 954a1e7fbc67da5ff3bf7e6c6271f5f161b815cd /src/apps/cam | |
parent | 2b1e1cd1ab12ae951fdb320968972c5c5f783e70 (diff) |
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 <Rauch.Christian@gmx.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/apps/cam')
-rw-r--r-- | src/apps/cam/kms_sink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::mutex> lock(lock_); |