mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 16:35:06 +03:00
ipa: raspberrypi: Replace void cast with [[maybe_unused]]
The standard way in C++17 to specify that a function or function argument may be unused it to specify the [[maybe_unused]] attribute. Replace manual void casts to silence compiler warnings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
dbafe16da7
commit
de012767e7
5 changed files with 15 additions and 23 deletions
|
@ -26,10 +26,9 @@ char const *Sharpen::Name() const
|
|||
return NAME;
|
||||
}
|
||||
|
||||
void Sharpen::SwitchMode(CameraMode const &camera_mode, Metadata *metadata)
|
||||
void Sharpen::SwitchMode(CameraMode const &camera_mode,
|
||||
[[maybe_unused]] Metadata *metadata)
|
||||
{
|
||||
(void)metadata;
|
||||
|
||||
// can't be less than one, right?
|
||||
mode_factor_ = std::max(1.0, camera_mode.noise_factor);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue