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/3f17780fa2e5
branches:  trunk
changeset: 986287:3f17780fa2e5
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 4eef36ce4287 -r 3f17780fa2e5 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