lint: properly name C99 in message about declaration after statement

Now that C99 has been released and published, there is no reason anymore
to refer to it as C9X.
This commit is contained in:
rillig 2021-03-20 14:17:56 +00:00
parent 363ba317d3
commit daef7ea921
4 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_327.c,v 1.3 2021/03/20 14:13:51 rillig Exp $ */
/* $NetBSD: msg_327.c,v 1.4 2021/03/20 14:17:56 rillig Exp $ */
# 3 "msg_327.c"
/* Test for message: declarations after statements is a C9X feature [327] */
/* Test for message: declarations after statements is a C99 feature [327] */
/* lint1-flags: -w */

View File

@ -1,4 +1,4 @@
msg_327.c(17): warning: declarations after statements is a C9X feature [327]
msg_327.c(19): warning: declarations after statements is a C9X feature [327]
msg_327.c(17): warning: declarations after statements is a C99 feature [327]
msg_327.c(19): warning: declarations after statements is a C99 feature [327]
msg_327.c(20): syntax error '}' [249]
msg_327.c(23): cannot recover from previous errors [224]

View File

@ -1,5 +1,5 @@
%{
/* $NetBSD: cgram.y,v 1.183 2021/03/20 13:53:28 rillig Exp $ */
/* $NetBSD: cgram.y,v 1.184 2021/03/20 14:17:56 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: cgram.y,v 1.183 2021/03/20 13:53:28 rillig Exp $");
__RCSID("$NetBSD: cgram.y,v 1.184 2021/03/20 14:17:56 rillig Exp $");
#endif
#include <limits.h>
@ -1514,7 +1514,7 @@ statement_d_list:
statement_list
| statement_d_list declaration_list statement_list {
if (!Sflag)
/* declarations after statements is a C9X feature */
/* declarations after statements is a C99 feature */
c99ism(327);
}
;

View File

@ -1,4 +1,4 @@
/* $NetBSD: err.c,v 1.88 2021/03/18 21:26:56 rillig Exp $ */
/* $NetBSD: err.c,v 1.89 2021/03/20 14:17:56 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: err.c,v 1.88 2021/03/18 21:26:56 rillig Exp $");
__RCSID("$NetBSD: err.c,v 1.89 2021/03/20 14:17:56 rillig Exp $");
#endif
#include <sys/types.h>
@ -386,7 +386,7 @@ const char *msgs[] = {
"suggest cast from '%s' to '%s' on op %s to avoid overflow", /* 324 */
"variable declaration in for loop", /* 325 */
"%s attribute ignored for %s", /* 326 */
"declarations after statements is a C9X feature", /* 327 */
"declarations after statements is a C99 feature", /* 327 */
"union cast is a C9X feature", /* 328 */
"type '%s' is not a member of '%s'", /* 329 */
"operand of '%s' must be bool, not '%s'", /* 330 */