summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-05 16:12:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-06 08:01:57 +0200
commitd30a352d4c89b0c7cde4b2da55894fccc2198791 (patch)
treeb34aba54cc267f4c63d2cd010e2e6de9313da18e
parentrtems: Add rtems_get_copyright_notice() (diff)
downloadrtems-d30a352d4c89b0c7cde4b2da55894fccc2198791.tar.bz2
rtems: Deprecate _Copyright_Notice
Close #3973.
-rw-r--r--cpukit/include/rtems/system.h2
-rw-r--r--cpukit/sapi/src/getcopyrightnotice.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/system.h b/cpukit/include/rtems/system.h
index 8019717bc2..032ac56a95 100644
--- a/cpukit/include/rtems/system.h
+++ b/cpukit/include/rtems/system.h
@@ -48,7 +48,7 @@ extern RTEMS_DEPRECATED const char _RTEMS_version[];
/**
* The following is the extern for the RTEMS copyright string.
*/
-extern const char _Copyright_Notice[];
+extern RTEMS_DEPRECATED const char _Copyright_Notice[];
typedef RTEMS_DEPRECATED uint32_t RTEMS_MAXIMUM_NAME_LENGTH;
/* The use of this define is deprecated, use sizeof(rtems_name) instead */
diff --git a/cpukit/sapi/src/getcopyrightnotice.c b/cpukit/sapi/src/getcopyrightnotice.c
index 515d5258c2..4e5df66524 100644
--- a/cpukit/sapi/src/getcopyrightnotice.c
+++ b/cpukit/sapi/src/getcopyrightnotice.c
@@ -37,6 +37,8 @@
#include "config.h"
#endif
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
#include <rtems.h>
#include <rtems/score/copyrt.h>