From: Jakub Jelinek Date: Tue, 27 May 2025 21:27:23 +0000 (+0200) Subject: c: Fix up a pasto in countof diagnostics [PR117025] X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e776687d0eb88bf180a3a91be4d24c4fe3163b78;p=thirdparty%2Fgcc.git 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. --- 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++;