From d30a352d4c89b0c7cde4b2da55894fccc2198791 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 5 May 2020 16:12:05 +0200 Subject: 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 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 #include -- cgit v1.2.3