From de012767e7432ebadd7493d90e0a7139cc422306 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 22 Aug 2020 18:53:54 +0300 Subject: ipa: raspberrypi: Replace void cast with [[maybe_unused]] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- src/ipa/raspberrypi/controller/algorithm.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/ipa/raspberrypi/controller/algorithm.cpp') 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 ¶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: -- cgit v1.2.1