[PATCH] score: Use RTEMS_DEPRECATED for deprecated types

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 7 13:28:30 UTC 2018


Update #3584.
---
 cpukit/include/rtems/rtems/types.h    | 6 +++---
 cpukit/include/rtems/score/basedefs.h | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cpukit/include/rtems/rtems/types.h b/cpukit/include/rtems/rtems/types.h
index 82c0edd3c3..806fa44eb6 100644
--- a/cpukit/include/rtems/rtems/types.h
+++ b/cpukit/include/rtems/rtems/types.h
@@ -47,21 +47,21 @@ extern "C" {
  *
  * @deprecated Use @c float instead.
  */
-typedef single_precision rtems_single;
+typedef single_precision rtems_single RTEMS_DEPRECATED;
 
 /**
  * @brief Double precision float type.
  *
  * @deprecated Use @c double instead.
  */
-typedef double_precision rtems_double;
+typedef double_precision rtems_double RTEMS_DEPRECATED;
 
 /**
  * @brief RTEMS boolean type.
  *
  * @deprecated Use @c bool instead
  */
-typedef boolean          rtems_boolean;
+typedef boolean          rtems_boolean RTEMS_DEPRECATED;
 #endif
 
 /**
diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h
index 0a2bf8dd17..5e425cedf0 100644
--- a/cpukit/include/rtems/score/basedefs.h
+++ b/cpukit/include/rtems/score/basedefs.h
@@ -460,9 +460,9 @@ extern void RTEMS_DEQUALIFY_types_not_compatible(void);
 
 #ifndef ASM
   #ifdef RTEMS_DEPRECATED_TYPES
-    typedef bool boolean;
-    typedef float single_precision;
-    typedef double double_precision;
+    typedef bool boolean RTEMS_DEPRECATED;
+    typedef float single_precision RTEMS_DEPRECATED;
+    typedef double double_precision RTEMS_DEPRECATED;
   #endif
 
   /**
-- 
2.16.4



More information about the devel mailing list