From 027efca2ecb3b465993179d415d7c85fd77fdb38 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Tue, 5 Nov 2024 11:31:04 +0100 Subject: [PATCH] Fix potential unused function definition --- .../imgproc/brightness/tutorial-brightness-adjustment.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp b/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp index 1645cef9ec..c0fd9c5112 100644 --- a/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp +++ b/tutorial/imgproc/brightness/tutorial-brightness-adjustment.cpp @@ -22,6 +22,9 @@ using namespace VISP_NAMESPACE_NAME; #endif +#if defined(VISP_HAVE_MODULE_IMGPROC) && defined(VISP_HAVE_DISPLAY) && \ + (defined(VISP_HAVE_PNG) || defined(VISP_HAVE_OPENCV) || defined(VISP_HAVE_STBIMAGE) || defined(VISP_HAVE_SIMDLIB)) && \ + ((__cplusplus >= 201103L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L))) namespace { void display(vpImage &I_display, vpImage &I_color_res, const vpImage &I_color_adjust, @@ -49,6 +52,7 @@ void display(vpImage &I_display, vpImage &I_color_res, const vpI vpDisplay::getClick(I_display); } } +#endif int main(int argc, const char **argv) {