From 55e85498394b990ed224b109c7b2b88bf7c2553d Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 15 Jul 2020 22:10:45 +0000 Subject: [PATCH] dnn: eliminate IE deprecation warning --- modules/dnn/src/op_inf_engine.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dnn/src/op_inf_engine.hpp b/modules/dnn/src/op_inf_engine.hpp index 8c494ac918..e8fdada99a 100644 --- a/modules/dnn/src/op_inf_engine.hpp +++ b/modules/dnn/src/op_inf_engine.hpp @@ -44,7 +44,7 @@ #pragma GCC diagnostic ignored "-Wsuggest-override" #endif -#ifdef HAVE_DNN_IE_NN_BUILDER_2019 +#if defined(HAVE_DNN_IE_NN_BUILDER_2019) || INF_ENGINE_VER_MAJOR_EQ(INF_ENGINE_RELEASE_2020_4) //#define INFERENCE_ENGINE_DEPRECATED // turn off deprecation warnings from IE //there is no way to suppress warnings from IE only at this moment, so we are forced to suppress warnings globally #if defined(__GNUC__) @@ -53,7 +53,7 @@ #ifdef _MSC_VER #pragma warning(disable: 4996) // was declared deprecated #endif -#endif // HAVE_DNN_IE_NN_BUILDER_2019 +#endif #if defined(__GNUC__) && INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2020_1) #pragma GCC visibility push(default)