From 2d6eb6cca0d5e1a994f4226c7197b0baba3190a5 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Wed, 24 Jan 2024 07:39:16 +0100 Subject: [PATCH] Fix issue detected by ros2 jenkins - see https://build.ros2.org/job/Idev__visp__ubuntu_jammy_amd64/88/ - fix unused functions in testColorConversion.cpp when isolated build that doesn't use dataset --- modules/core/test/image-with-dataset/testColorConversion.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/test/image-with-dataset/testColorConversion.cpp b/modules/core/test/image-with-dataset/testColorConversion.cpp index d435c3fc10..581cabd550 100644 --- a/modules/core/test/image-with-dataset/testColorConversion.cpp +++ b/modules/core/test/image-with-dataset/testColorConversion.cpp @@ -885,7 +885,8 @@ TEST_CASE("OpenCV Mat <==> vpImage conversion", "[image_conversion]") } #endif -static void col2im(const std::vector &buffer, vpImage &I_Bayer_8U) +#if (VISP_HAVE_DATASET_VERSION >= 0x030500) +void col2im(const std::vector &buffer, vpImage &I_Bayer_8U) { for (unsigned int i = 0; i < I_Bayer_8U.getHeight(); i++) { for (unsigned int j = 0; j < I_Bayer_8U.getWidth(); j++) { @@ -902,6 +903,7 @@ static void col2im(const std::vector &buffer, vpImage &I_Bay } } } +#endif static void convertTo(const vpImage &I_RGBA_16U, vpImage &I_RGBA_8U, int divisor = 1 << (12 - 8)) {