diff Framework/ImageToolbox.cpp @ 234:a464169306ce

integration 1.0->mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 Jan 2021 08:50:27 +0100
parents c0a554576721
children 49f647ed1b4c
line wrap: on
line diff
--- a/Framework/ImageToolbox.cpp	Thu Jan 14 07:18:25 2021 +0100
+++ b/Framework/ImageToolbox.cpp	Thu Jan 14 08:50:27 2021 +0100
@@ -278,7 +278,9 @@
 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0)
       Orthanc::ImageProcessing::ConvertJpegYCbCrToRgb(image);
 #else
-#  warning You are using an old version of the Orthanc framework
+#  if defined(__GNUC__) || defined(__clang__)
+#    warning You are using an old version of the Orthanc framework
+#  endif
       const unsigned int width = image.GetWidth();
       const unsigned int height = image.GetHeight();
       const unsigned int pitch = image.GetPitch();