diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-05-27 23:27:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-05-27 23:27:23 +0200 |
commit | e776687d0eb88bf180a3a91be4d24c4fe3163b78 (patch) | |
tree | 2d13e530f6ea5797163b9bd621c5793a7498141f /gcc | |
parent | 74a2281ae18c6dbbc640f0c79f7138a495ef8f0c (diff) | |
download | gcc-e776687d0eb88bf180a3a91be4d24c4fe3163b78.zip gcc-e776687d0eb88bf180a3a91be4d24c4fe3163b78.tar.gz gcc-e776687d0eb88bf180a3a91be4d24c4fe3163b78.tar.bz2 |
c: Fix up a pasto in countof diagnostics [PR117025]
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c/c-parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc index 98a0c56..0d79f58 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++; |