Module Name:    src
Committed By:   rillig
Date:           Sun Aug 29 09:48:02 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint2: lint2.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint2/lint2.h

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/lint2/lint2.h
diff -u src/usr.bin/xlint/lint2/lint2.h:1.17 src/usr.bin/xlint/lint2/lint2.h:1.18
--- src/usr.bin/xlint/lint2/lint2.h:1.17	Sat Aug 28 12:21:53 2021
+++ src/usr.bin/xlint/lint2/lint2.h	Sun Aug 29 09:48:02 2021
@@ -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 {
 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;

Reply via email to