Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: add message text to newly added ca...
details: https://anonhg.NetBSD.org/src/rev/f813dbae260f
branches: trunk
changeset: 366058:f813dbae260f
user: rillig <rillig%NetBSD.org@localhost>
date: Thu May 12 20:22:58 2022 +0000
description:
lint: add message text to newly added call to gnuism
Required by check-msgs.lua.
diffstat:
usr.bin/xlint/lint1/cgram.y | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r bd75418ffcb3 -r f813dbae260f usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Thu May 12 18:47:29 2022 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Thu May 12 20:22:58 2022 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.413 2022/05/12 18:47:29 martin Exp $ */
+/* $NetBSD: cgram.y,v 1.414 2022/05/12 20:22:58 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.413 2022/05/12 18:47:29 martin Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.414 2022/05/12 20:22:58 rillig Exp $");
#endif
#include <limits.h>
@@ -620,6 +620,7 @@
}
/* gcc */
| T_ALIGNOF T_LPAREN unary_expression T_RPAREN {
+ /* non type argument to alignof is a GCC extension */
gnuism(349);
if ($3 != NULL)
$$ = build_alignof($3->tn_type);
Home |
Main Index |
Thread Index |
Old Index