From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id AE9C13858CD1 for ; Fri, 23 Jun 2023 14:38:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE9C13858CD1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f900cd3f96so8807385e9.2 for ; Fri, 23 Jun 2023 07:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687531121; x=1690123121; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=KlkLnnnvMd+sfnooq30xFGD1aq7iMg59VEdeWqfrnAY=; b=Wfznvo8qXgXDK9LSzyx0hcx8M4+cC7+olhcu2aJfwuUb5rMrdHDDAeobMEm4RL+JPm KBSEm8kw9LlrOxTPFPrz5dLGt5blXVYrg7AzupdordhgoCfWi/q+ok+nAs2Jw1I8w94b 6Vuv0AIFWLOcE/w78EZpWK5NCCIyMO9dEMH3+GN5cwrSfKeiQj2+xsPRevFy21HZ3hdO hxM63tDLTHaO9ujoK/Xo7mlvA7nQlFwbxUYRoN2l5jS9ibDHCda1PVq+0b7wRzpcW8vE pQN6OXaR1IKx5vdvE5qfHmRZA7xtv0hbdGWRjJcu6z6qYZBXdXPLKlEdcYFb1W9dsWh8 6TNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687531121; x=1690123121; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KlkLnnnvMd+sfnooq30xFGD1aq7iMg59VEdeWqfrnAY=; b=YLzxymQsTAFYDWMAHY4GtuR9RMau+laSctiQLjX53QY14sFRYDty7IBupSoyH2aZ9S u/eA5jS3S4zQKgUkqncL4EWUlynz0Sg55NJ3fuT5Yc/B1l+hb6w8EsNnEfC8mJdi41VK freK4vLw06MOqQj0cF78j/+FFX+eH3m4A24K+T5H/NcjKIeboXtYA04PeQBYKSAaRA+M bnPandSa/jEzwLmwE1IQmrZ8F0QYMNGXdHICLQBN6owL6IvT9qN5TOXdDZjMg0BoCoCN ntp7ZraW9Z9YxvSeDcaqhbU0mnaISFoi2wSGQ5ZESVm1ydQseRKL/mNkAlxsfuWrbtQY gmNg== X-Gm-Message-State: AC+VfDxb0mub21246T9GGSmc8a50TwCx7jq1Wvi98OdFD2uFt5TcE8vU /uO9GN8nPcUe4Zl/fgo5ZsuV4jEjGlB/Dw== X-Google-Smtp-Source: ACHHUZ7qf0p2+z/HPwN2FCyvzVovd48kZ3f2Y3tRk7RPZlwiZlFLsGL24FYu+YOr7IOrKnwCJkvfTg== X-Received: by 2002:a1c:4c05:0:b0:3fa:787b:5185 with SMTP id z5-20020a1c4c05000000b003fa787b5185mr2959626wmf.13.1687531120911; Fri, 23 Jun 2023 07:38:40 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id q20-20020a1cf314000000b003f90b9b2c31sm2563302wmq.28.2023.06.23.07.38.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 23 Jun 2023 07:38:40 -0700 (PDT) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [pushed] testsuite,objective-c++: Fix imported NSObjCRuntime.h. Date: Fri, 23 Jun 2023 15:38:35 +0100 Message-Id: <20230623143835.36983-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) Reply-To: iain@sandoe.co.uk MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Tested on x86_64-darwin, pushed to trunk, thanks Iain --- 8< --- 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. --- .../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 -- 2.39.2 (Apple Git-143)