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 unused brace_level.bl_array...
details: https://anonhg.NetBSD.org/src/rev/02de6cbb382b
branches: trunk
changeset: 960915:02de6cbb382b
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Apr 02 14:19:33 2021 +0000
description:
lint: remove unused brace_level.bl_array_of_unknown_size
Since init.c 1.177 from 2021-03-29, the type of the object to be
initialized is no longer modified in the middle of the initialization,
as required by C99 6.7.8p22. Therefore it is no longer necessary to
keep this redundant information around.
No functional change.
diffstat:
usr.bin/xlint/lint1/init.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (45 lines):
diff -r 37d8eecb9624 -r 02de6cbb382b usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c Fri Apr 02 13:16:38 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c Fri Apr 02 14:19:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.190 2021/04/02 12:16:50 rillig Exp $ */
+/* $NetBSD: init.c,v 1.191 2021/04/02 14:19:33 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.190 2021/04/02 12:16:50 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.191 2021/04/02 14:19:33 rillig Exp $");
#endif
#include <stdlib.h>
@@ -124,7 +124,6 @@
const type_t *bl_type;
const sym_t *bl_next_member; /* for structs and unions */
size_t bl_array_next_subscript;
- bool bl_array_of_unknown_size: 1;
bool bl_scalar_done: 1; /* for scalars */
bool bl_confused: 1; /* skip further checks */
struct designation bl_designation; /* .member[123].member */
@@ -526,8 +525,6 @@
return tp;
}
-
-
static void
designation_reset(struct designation *dn)
{
@@ -576,9 +573,6 @@
debug_printf("type '%s'", type_name(bl->bl_type));
- if (bl->bl_array_of_unknown_size)
- debug_printf(", array of unknown size");
-
if (is_struct_or_union(bl->bl_type->t_tspec) &&
bl->bl_next_member != NULL)
debug_printf(", next member '%s'",
Home |
Main Index |
Thread Index |
Old Index