# HG changeset patch # User Sebastien Jodogne # Date 1610610563 -3600 # Node ID c0a5545767215c1c9ac0dc4b045b85a7a7bc4eed # Parent 121328eb4a7d541c5e0d7828e3e24e464425b888 "#warning" is not available on Visual Studio diff -r 121328eb4a7d -r c0a554576721 Framework/ImageToolbox.cpp --- a/Framework/ImageToolbox.cpp Thu Jan 14 07:15:19 2021 +0100 +++ b/Framework/ImageToolbox.cpp Thu Jan 14 08:49:23 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();