[rtems commit] score: Use RTEMS_DEPRECATED for deprecated types

Sebastian Huber sebh at rtems.org
Thu Nov 8 07:11:15 UTC 2018


Module:    rtems
Branch:    master
Commit:    a9767a07a2695cb52dc1b0d03aa83dfed171a5f0
Changeset: http://git.rtems.org/rtems/commit/?id=a9767a07a2695cb52dc1b0d03aa83dfed171a5f0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov  7 14:27:17 2018 +0100

score: Use RTEMS_DEPRECATED for deprecated types

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 82c0edd..806fa44 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 0a2bf8d..5e425ce 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
 
   /**




More information about the vc mailing list