From: Alexander Alekhin Date: Thu, 27 Jun 2019 14:04:10 +0000 (+0300) Subject: dnn: adjust compilation options X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~191^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a743de0e245fa0291e8bd68ea1e9b237a8c6e32e;p=platform%2Fupstream%2Fopencv.git dnn: adjust compilation options --- diff --git a/modules/dnn/src/op_inf_engine.hpp b/modules/dnn/src/op_inf_engine.hpp index b9abfd3..c183cd0 100644 --- a/modules/dnn/src/op_inf_engine.hpp +++ b/modules/dnn/src/op_inf_engine.hpp @@ -38,7 +38,16 @@ #pragma GCC diagnostic ignored "-Wsuggest-override" #endif -#if defined(__GNUC__) && INF_ENGINE_VER_MAJOR_LE(INF_ENGINE_RELEASE_2019R1) +//#define INFERENCE_ENGINE_DEPRECATED // turn off deprecation warnings from IE +//there is no way to suppress warnigns from IE only at this moment, so we are forced to suppress warnings globally +#if defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif +#ifdef _MSC_VER +#pragma warning(disable: 4996) // was declared deprecated +#endif + +#if defined(__GNUC__) #pragma GCC visibility push(default) #endif @@ -46,7 +55,7 @@ #include -#if defined(__GNUC__) && INF_ENGINE_VER_MAJOR_LE(INF_ENGINE_RELEASE_2019R1) +#if defined(__GNUC__) #pragma GCC visibility pop #endif