From e776687d0eb88bf180a3a91be4d24c4fe3163b78 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 27 May 2025 23:27:23 +0200 Subject: [PATCH] c: Fix up a pasto in countof diagnostics [PR117025] The C23 in there looks like pasto, should be C2Y. 2025-05-27 Jakub Jelinek PR c/117025 * c-parser.cc (c_parser_sizeof_or_countof_expression): Use C2Y rather than C23 in pedwarn_c23. --- gcc/c/c-parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc index 98a0c563280..0d79f5832bf 100644 --- a/gcc/c/c-parser.cc +++ b/gcc/c/c-parser.cc @@ -10651,7 +10651,7 @@ c_parser_sizeof_or_countof_expression (c_parser *parser, enum rid rid) if (rid == RID_COUNTOF) pedwarn_c23 (start, OPT_Wpedantic, - "ISO C does not support %qs before C23", op_name); + "ISO C does not support %qs before C2Y", op_name); c_parser_consume_token (parser); c_inhibit_evaluation_warnings++; -- 2.47.2