summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-05 14:37:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-06 07:39:10 +0200
commit34b098edc5d89d3dd110baa42956105c8949b263 (patch)
tree626f9f05f2e3b9076074eb909437f5b647d9e652 /cpukit
parentUse rtems_get_version_string() (diff)
downloadrtems-34b098edc5d89d3dd110baa42956105c8949b263.tar.bz2
rtems: Deprecate use of _RTEMS_version
Close #3970.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/system.h9
-rw-r--r--cpukit/sapi/src/getversionstring.c2
2 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/include/rtems/system.h b/cpukit/include/rtems/system.h
index c72859195c..2fb5e8add7 100644
--- a/cpukit/include/rtems/system.h
+++ b/cpukit/include/rtems/system.h
@@ -35,12 +35,11 @@ extern "C" {
#ifndef ASM
-/**
- * The following is the extern for the RTEMS version string.
- *
- * @note The contents of this string are CPU specific.
+/*
+ * The use of this variable is deprecated, use rtems_get_version_string()
+ * instead.
*/
-extern const char _RTEMS_version[];
+extern RTEMS_DEPRECATED const char _RTEMS_version[];
/**
* The following is the extern for the RTEMS copyright string.
diff --git a/cpukit/sapi/src/getversionstring.c b/cpukit/sapi/src/getversionstring.c
index 2222e9ef50..f3fada9c48 100644
--- a/cpukit/sapi/src/getversionstring.c
+++ b/cpukit/sapi/src/getversionstring.c
@@ -19,6 +19,8 @@
#include "config.h"
#endif
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
#include <rtems.h>
const char *rtems_get_version_string(void)