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 downgrade bitfield in union to a warning...
details: https://anonhg.NetBSD.org/src/rev/a3995f6832a0
branches: trunk
changeset: 1023603:a3995f6832a0
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 17 21:15:19 2021 +0000
description:
downgrade bitfield in union to a warnings (ldpd uses it).
diffstat:
usr.bin/xlint/lint1/decl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6e10f890a55f -r a3995f6832a0 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Fri Sep 17 21:06:35 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Fri Sep 17 21:15:19 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.240 2021/09/13 06:11:51 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.241 2021/09/17 21:15:19 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.240 2021/09/13 06:11:51 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.241 2021/09/17 21:15:19 christos Exp $");
#endif
#include <sys/param.h>
@@ -1129,7 +1129,7 @@
}
if (dsym->s_scl == MOU) {
/* illegal use of bit-field */
- error(41);
+ warning(41);
dsym->s_type->t_bitfield = false;
dsym->s_bitfield = false;
}
Home |
Main Index |
Thread Index |
Old Index