Module Name:    src
Committed By:   christos
Date:           Sun Dec 23 19:09:03 UTC 2018

Modified Files:
        src/usr.bin/xlint/lint1: main1.c

Log Message:
yydebug is now available only if YYDEBUG is set.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/xlint/lint1/main1.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/main1.c
diff -u src/usr.bin/xlint/lint1/main1.c:1.26 src/usr.bin/xlint/lint1/main1.c:1.27
--- src/usr.bin/xlint/lint1/main1.c:1.26	Sat Dec 24 12:43:45 2016
+++ src/usr.bin/xlint/lint1/main1.c	Sun Dec 23 14:09:03 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: main1.c,v 1.26 2016/12/24 17:43:45 christos Exp $	*/
+/*	$NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: main1.c,v 1.26 2016/12/24 17:43:45 christos Exp $");
+__RCSID("$NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -241,8 +241,10 @@ main(int argc, char *argv[])
 	/* initialize output */
 	outopen(argv[1]);
 
+#ifdef YYDEBUG
 	if (yflag)
 		yydebug = 1;
+#endif
 
 	(void)signal(SIGFPE, sigfpe);
 	initmem();

Reply via email to