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
|
@ -9,28 +9,24 @@
|
|||
|
||||
using namespace RPi;
|
||||
|
||||
void Algorithm::Read(boost::property_tree::ptree const ¶ms)
|
||||
void Algorithm::Read([[maybe_unused]] boost::property_tree::ptree const ¶ms)
|
||||
{
|
||||
(void)params;
|
||||
}
|
||||
|
||||
void Algorithm::Initialise() {}
|
||||
|
||||
void Algorithm::SwitchMode(CameraMode const &camera_mode, Metadata *metadata)
|
||||
void Algorithm::SwitchMode([[maybe_unused]] CameraMode const &camera_mode,
|
||||
[[maybe_unused]] Metadata *metadata)
|
||||
{
|
||||
(void)camera_mode;
|
||||
(void)metadata;
|
||||
}
|
||||
|
||||
void Algorithm::Prepare(Metadata *image_metadata)
|
||||
void Algorithm::Prepare([[maybe_unused]] Metadata *image_metadata)
|
||||
{
|
||||
(void)image_metadata;
|
||||
}
|
||||
|
||||
void Algorithm::Process(StatisticsPtr &stats, Metadata *image_metadata)
|
||||
void Algorithm::Process([[maybe_unused]] StatisticsPtr &stats,
|
||||
[[maybe_unused]] Metadata *image_metadata)
|
||||
{
|
||||
(void)stats;
|
||||
(void)image_metadata;
|
||||
}
|
||||
|
||||
// For registering algorithms with the system:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue