summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/algorithm.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-08-22 18:53:54 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-08-25 02:58:05 +0300
commitde012767e7432ebadd7493d90e0a7139cc422306 (patch)
tree72f9851a474586eb5beaf4b8ffdc0a79d53be881 /src/ipa/raspberrypi/controller/algorithm.cpp
parentdbafe16da7a9999ec77da21a42537702fb87f124 (diff)
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>
Diffstat (limited to 'src/ipa/raspberrypi/controller/algorithm.cpp')
-rw-r--r--src/ipa/raspberrypi/controller/algorithm.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/ipa/raspberrypi/controller/algorithm.cpp b/src/ipa/raspberrypi/controller/algorithm.cpp
index 55cb2012..1b80e296 100644
--- a/src/ipa/raspberrypi/controller/algorithm.cpp
+++ b/src/ipa/raspberrypi/controller/algorithm.cpp
@@ -9,28 +9,24 @@
using namespace RPi;
-void Algorithm::Read(boost::property_tree::ptree const &params)
+void Algorithm::Read([[maybe_unused]] boost::property_tree::ptree const &params)
{
- (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: