diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2023-06-23 15:29:14 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2023-06-23 15:36:20 +0100 |
commit | d83e0e3bc375a05844438d28c9a4ab24c5401eb9 (patch) | |
tree | 451bd6c1dd54465a112fe2812781ae65873d82eb /gcc | |
parent | d0e891406b16dc28905717de2333f5637cf71d3e (diff) | |
download | gcc-d83e0e3bc375a05844438d28c9a4ab24c5401eb9.zip gcc-d83e0e3bc375a05844438d28c9a4ab24c5401eb9.tar.gz gcc-d83e0e3bc375a05844438d28c9a4ab24c5401eb9.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/objc-obj-c++-shared/GNUStep/Foundation/NSObjCRuntime.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 189af80..62556f9 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 |