]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c: Fix up a pasto in countof diagnostics [PR117025]
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 May 2025 21:27:23 +0000 (23:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 May 2025 21:27:23 +0000 (23:27 +0200)
The C23 in there looks like pasto, should be C2Y.

2025-05-27  Jakub Jelinek  <jakub@redhat.com>

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

index 98a0c5632805f143fd11b0819440614c217d4bf6..0d79f5832bffdeeb22c5bf17d1072f99331f7c8c 100644 (file)
@@ -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++;