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>
This commit is contained in:
parent
2b1e1cd1ab
commit
40f338be67
1 changed files with 1 additions and 1 deletions
|
@ -517,7 +517,7 @@ bool KMSSink::processRequest(libcamera::Request *camRequest)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void KMSSink::requestComplete(DRM::AtomicRequest *request)
|
void KMSSink::requestComplete([[maybe_unused]] DRM::AtomicRequest *request)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(lock_);
|
std::lock_guard<std::mutex> lock(lock_);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue