public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r11-11358] testsuite, objective-c++: Fix imported NSObjCRuntime.h.
Date: Wed, 24 Apr 2024 18:39:30 +0000 (GMT)	[thread overview]
Message-ID: <20240424183930.EB95A385840D@sourceware.org> (raw)

https://gcc.gnu.org/g:c2a39d977605e554177236bf524c97ff14196f95

commit r11-11358-gc2a39d977605e554177236bf524c97ff14196f95
Author: Iain Sandoe <iain@sandoe.co.uk>
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 <iain@sandoe.co.uk>
    
    gcc/testsuite/ChangeLog:
    
            * objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h: Make
            this header use pragma system_header.
    
    (cherry picked from commit d83e0e3bc375a05844438d28c9a4ab24c5401eb9)

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

                 reply	other threads:[~2024-04-24 18:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240424183930.EB95A385840D@sourceware.org \
    --to=iains@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).