Module Name: src
Committed By: christos
Date: Fri Sep 17 21:15:19 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: decl.c
Log Message:
downgrade bitfield in union to a warnings (ldpd uses it).
To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/usr.bin/xlint/lint1/decl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.240 src/usr.bin/xlint/lint1/decl.c:1.241
--- src/usr.bin/xlint/lint1/decl.c:1.240 Mon Sep 13 02:11:51 2021
+++ src/usr.bin/xlint/lint1/decl.c Fri Sep 17 17:15:19 2021
@@ -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 @@ declare_bit_field(sym_t *dsym, tspec_t *
}
if (dsym->s_scl == MOU) {
/* illegal use of bit-field */
- error(41);
+ warning(41);
dsym->s_type->t_bitfield = false;
dsym->s_bitfield = false;
}