OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[Core] Simplify OPENVINO_DEPRECATED macro definition (#34304)
Arseniy Obolenskiy7437d53a2105
diff --git a/src/core/include/openvino/core/deprecated.hpp b/src/core/include/openvino/core/deprecated.hppindex 0e80a1ea99a..e3c26858f78 100644--- a/src/core/include/openvino/core/deprecated.hpp+++ b/src/core/include/openvino/core/deprecated.hpp@@ -14,26 +14,11 @@// so any use of `frobnicate` will produce a compiler warning.//-#if defined(__GNUC__)-# define OPENVINO_DEPRECATED(msg) __attribute__((deprecated(msg)))-# if __GNUC__ >= 6 || defined(__clang__)-# define OPENVINO_ENUM_DEPRECATED(msg) OPENVINO_DEPRECATED(msg)-# else-# define OPENVINO_ENUM_DEPRECATED(msg)-# endif-#elif defined(_MSC_VER)-# define OPENVINO_DEPRECATED(msg) __declspec(deprecated(msg))-# if _MSC_VER >= 1900 /* VS2015 */-# define OPENVINO_ENUM_DEPRECATED(msg) [[deprecated(msg)]]-# else-# define OPENVINO_ENUM_DEPRECATED(msg)-# endif-#elif defined(__INTEL_COMPILER)-# define OPENVINO_DEPRECATED(msg) __attribute__((deprecated(msg)))+#ifndef OPENVINO_DEPRECATED+# define OPENVINO_DEPRECATED(msg) [[deprecated(msg)]]+#endif+#ifndef OPENVINO_ENUM_DEPRECATED# define OPENVINO_ENUM_DEPRECATED(msg) OPENVINO_DEPRECATED(msg)-#else-# define OPENVINO_DEPRECATED(msg)-# define OPENVINO_ENUM_DEPRECATED(msg)#endif// Suppress warning "-Wdeprecated-declarations" / C4996