From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 03F873858296; Fri, 23 Jun 2023 14:36:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03F873858296 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687530996; bh=eyzQV9nHfHDjbuwkdQINS0oJwOimPSe3R8Td6cOAHB8=; h=From:To:Subject:Date:From; b=q9s+8iRhOC/e8pBdrCxkNP9pl9G1F2doLnqGC4qx1+4Y0IcAdncFr3WtcMNFrs93/ P53WSmy5VKjRURuDk0/Fo23p7csKLmD9F514dEtCw+MXUDKzQLr2w3/POUp8Mk8bEr W8hjUbei/5so0TIsGQebbpXTw0v1Z31G1ULOaZzM= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-2048] testsuite, objective-c++: Fix imported NSObjCRuntime.h. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/master X-Git-Oldrev: d0e891406b16dc28905717de2333f5637cf71d3e X-Git-Newrev: d83e0e3bc375a05844438d28c9a4ab24c5401eb9 Message-Id: <20230623143636.03F873858296@sourceware.org> Date: Fri, 23 Jun 2023 14:36:35 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d83e0e3bc375a05844438d28c9a4ab24c5401eb9 commit r14-2048-gd83e0e3bc375a05844438d28c9a4ab24c5401eb9 Author: Iain Sandoe Date: Fri Jun 23 15:29:14 2023 +0100 testsuite,objective-c++: Fix imported NSObjCRuntime.h. We have imported some headers from the GNUStep project to allow us to maintain the testsuite independent to changing versions of system headers. One of these headers has a macro that (now we have support for __has_feature) expands to a declaration that triggers a warning. These headers are considered part of the implementation so that, in this case, we can suppress the warning with the system_header pragma. Signed-off-by: Iain Sandoe gcc/testsuite/ChangeLog: * objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h: Make this header use pragma system_header. Diff: --- gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h b/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h index 189af80436a..62556f9ac88 100644 --- a/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h +++ b/gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h @@ -29,6 +29,9 @@ #ifndef __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE #define __NSObjCRuntime_h_GNUSTEP_BASE_INCLUDE +/* Allow the elaborated enum use in _GS_NAMED_ENUM. */ +#pragma GCC system_header + #ifdef __cplusplus #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1