rtems: Deprecate use of _RTEMS_version

Close #3970.
This commit is contained in:
Sebastian Huber
2020-05-05 14:37:30 +02:00
parent 4b9b6ddb9f
commit 34b098edc5
3 changed files with 8 additions and 5 deletions

View File

@@ -35,12 +35,11 @@ extern "C" {
#ifndef ASM #ifndef ASM
/** /*
* The following is the extern for the RTEMS version string. * The use of this variable is deprecated, use rtems_get_version_string()
* * instead.
* @note The contents of this string are CPU specific.
*/ */
extern const char _RTEMS_version[]; extern RTEMS_DEPRECATED const char _RTEMS_version[];
/** /**
* The following is the extern for the RTEMS copyright string. * The following is the extern for the RTEMS copyright string.

View File

@@ -19,6 +19,8 @@
#include "config.h" #include "config.h"
#endif #endif
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <rtems.h> #include <rtems.h>
const char *rtems_get_version_string(void) const char *rtems_get_version_string(void)

View File

@@ -18,6 +18,8 @@
#include "config.h" #include "config.h"
#endif #endif
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <rtems/config.h> #include <rtems/config.h>
#include <rtems/score/copyrt.h> #include <rtems/score/copyrt.h>
#include <rtems/rtems/clock.h> #include <rtems/rtems/clock.h>