Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint2 lint: in debug mode, use proper type for...



details:   https://anonhg.NetBSD.org/src/rev/01c4ef7c567c
branches:  trunk
changeset: 985525:01c4ef7c567c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 29 09:48:02 2021 +0000

description:
lint: in debug mode, use proper type for sym_t.s_def

diffstat:

 usr.bin/xlint/lint2/lint2.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9a7f7c98467e -r 01c4ef7c567c usr.bin/xlint/lint2/lint2.h
--- a/usr.bin/xlint/lint2/lint2.h       Sun Aug 29 09:41:59 2021 +0000
+++ b/usr.bin/xlint/lint2/lint2.h       Sun Aug 29 09:48:02 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lint2.h,v 1.17 2021/08/28 12:21:53 rillig Exp $ */
+/* $NetBSD: lint2.h,v 1.18 2021/08/29 09:48:02 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -114,7 +114,7 @@
 typedef        struct sym {
        struct {
                pos_t   s_pos;          /* pos of def./decl. */
-#ifndef lint
+#if !defined(lint) && !defined(DEBUG)
                unsigned char s_def;    /* DECL, TDEF or DEF */
 #else
                def_t   s_def;



Home | Main Index | Thread Index | Old Index