diff --git a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx index 5af54d5e51264e73001a4bf2c783f13ee8ba52d0..1aa1c471e300c643d8bec640e48b7949cea0b110 100644 --- a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx +++ b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx @@ -201,6 +201,8 @@ private: } catch(itk::ExceptionObject& err) { + //trick to prevent unreferenced local variable warning on MSVC + (void)err; // silent catch useContext = false; }