[PATCH 6/7] rtems: Deprecate _Copyright_Notice

Sebastian Huber sebastian.huber at embedded-brains.de
Tue May 5 14:23:31 UTC 2020


Update #3973.
---
 cpukit/include/rtems/system.h        | 2 +-
 cpukit/sapi/src/getcopyrightnotice.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

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>
 
-- 
2.16.4



More information about the devel mailing list