[rtems commit] rtems: Deprecate _Copyright_Notice

Sebastian Huber sebh at rtems.org
Wed May 6 06:02:29 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue May  5 16:12:05 2020 +0200

rtems: Deprecate _Copyright_Notice

Close #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 8019717..032ac56 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 515d525..4e5df66 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>
 



More information about the vc mailing list