Skip to content

Commit 55e8549

Browse files
committed
dnn: eliminate IE deprecation warning
1 parent f8d6c5b commit 55e8549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dnn/src/op_inf_engine.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#pragma GCC diagnostic ignored "-Wsuggest-override"
4545
#endif
4646

47-
#ifdef HAVE_DNN_IE_NN_BUILDER_2019
47+
#if defined(HAVE_DNN_IE_NN_BUILDER_2019) || INF_ENGINE_VER_MAJOR_EQ(INF_ENGINE_RELEASE_2020_4)
4848
//#define INFERENCE_ENGINE_DEPRECATED // turn off deprecation warnings from IE
4949
//there is no way to suppress warnings from IE only at this moment, so we are forced to suppress warnings globally
5050
#if defined(__GNUC__)
@@ -53,7 +53,7 @@
5353
#ifdef _MSC_VER
5454
#pragma warning(disable: 4996) // was declared deprecated
5555
#endif
56-
#endif // HAVE_DNN_IE_NN_BUILDER_2019
56+
#endif
5757

5858
#if defined(__GNUC__) && INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2020_1)
5959
#pragma GCC visibility push(default)

0 commit comments

Comments
 (0)