diff mbox series

[API-NEXT,v2,1/4] api: hints: remove ODP_DEPRECATED from API

Message ID 1490882336-13721-2-git-send-email-petri.savolainen@linaro.org
State Accepted
Commit 99478ee923dfd8279a7a5149769aee49df315dde
Headers show
Series Deprecated macros | expand

Commit Message

Petri Savolainen March 30, 2017, 1:58 p.m. UTC
Remove ODP_DEPRECATED macro as it depends on (GCC) compiler type
attribute, which may not be supported (the same way) by all
compilers. Also the attribute works only for types, but not e.g.
for fields of structure.

A new configuration option will be added to control deprecated
definitions.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 include/odp/api/spec/hints.h | 6 ------
 1 file changed, 6 deletions(-)

-- 
2.8.1
diff mbox series

Patch

diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h
index 82400f0..7434c6a 100644
--- a/include/odp/api/spec/hints.h
+++ b/include/odp/api/spec/hints.h
@@ -52,11 +52,6 @@  extern "C" {
 #define ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y))))
 
 /**
- * Indicate deprecated variables, functions or types
- */
-#define ODP_DEPRECATED __attribute__((__deprecated__))
-
-/**
  * Intentionally unused variables of functions
  */
 #define ODP_UNUSED     __attribute__((__unused__))
@@ -96,7 +91,6 @@  extern "C" {
 #define ODP_WEAK_SYMBOL
 #define ODP_HOT_CODE
 #define ODP_COLD_CODE
-#define ODP_DEPRECATED
 #define ODP_UNUSED
 #define odp_likely(x)
 #define odp_unlikely(x)