diff --git a/Modules/IO/TIFF/src/itkTIFFReaderInternal.cxx b/Modules/IO/TIFF/src/itkTIFFReaderInternal.cxx index 2a4ab3c0084..87ddc1fbed7 100644 --- a/Modules/IO/TIFF/src/itkTIFFReaderInternal.cxx +++ b/Modules/IO/TIFF/src/itkTIFFReaderInternal.cxx @@ -46,7 +46,7 @@ itkTIFFErrorHandlerExtR([[maybe_unused]] TIFF * tif, va_list ap) { TIFFReaderInternal * self = reinterpret_cast(user_data); - if (::itk::Object::GetGlobalErrorDisplay() && !self->m_ErrorSilence) + if (::itk::Object::GetGlobalWarningDisplay() && !self->m_ErrorSilence) { char out[256]; vsnprintf(out, 256, fmt, ap);