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: remove outdated comment from init_...
details: https://anonhg.NetBSD.org/src/rev/55cbed6f1622
branches: trunk
changeset: 953923:55cbed6f1622
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Mar 25 00:48:58 2021 +0000
description:
lint: remove outdated comment from init_using_expr
Since C99, an aggregate type can be initialized without braces.
No functional change.
diffstat:
usr.bin/xlint/lint1/init.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (33 lines):
diff -r 7fa316722a64 -r 55cbed6f1622 usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c Thu Mar 25 00:35:16 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c Thu Mar 25 00:48:58 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.116 2021/03/25 00:35:16 rillig Exp $ */
+/* $NetBSD: init.c,v 1.117 2021/03/25 00:48:58 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.116 2021/03/25 00:35:16 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.117 2021/03/25 00:48:58 rillig Exp $");
#endif
#include <stdlib.h>
@@ -1051,14 +1051,6 @@
goto done;
sclass = initsym->s_scl;
-
- /*
- * Do not test for automatic aggregate initialization. If the
- * initializer starts with a brace we have the warning already.
- * If not, an error will be printed that the initializer must
- * be enclosed by braces.
- */
-
if ((sclass == AUTO || sclass == REG) && init_using_assign(tn))
goto done;
Home |
Main Index |
Thread Index |
Old Index