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 illegal bitfield from error to...



details:   https://anonhg.NetBSD.org/src/rev/c737633c8346
branches:  trunk
changeset: 325244:c737633c8346
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 15 03:43:37 2013 +0000

description:
downgrade illegal bitfield from error to warning so we can ignore it.

diffstat:

 usr.bin/xlint/lint1/decl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d2a3a1b840e7 -r c737633c8346 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Sun Dec 15 00:40:17 2013 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Sun Dec 15 03:43:37 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.57 2013/04/19 18:51:14 christos Exp $ */
+/* $NetBSD: decl.c,v 1.58 2013/12/15 03:43:37 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.57 2013/04/19 18:51:14 christos Exp $");
+__RCSID("$NetBSD: decl.c,v 1.58 2013/12/15 03:43:37 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -1121,7 +1121,7 @@
                         */
                        if (bitfieldtype_ok == 0 || isityp(t) == 0) {
                                /* illegal bit-field type */
-                               error(35);
+                               warning(35);
                                sz = tp->t_flen;
                                dsym->s_type = tp = duptyp(gettyp(t = INT));
                                if ((tp->t_flen = sz) > size(t))



Home | Main Index | Thread Index | Old Index