From: Jarkko Hietaniemi Date: Tue, 12 Jun 2001 14:11:26 +0000 (+0000) Subject: One less -Wall whine (found under DEBUGGING). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=caf640e2b8340bc381957cfef80a15aa1181e0a0;p=p5sagit%2Fp5-mst-13.2.git One less -Wall whine (found under DEBUGGING). p4raw-id: //depot/perl@10537 --- diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH index 5db022f..3b42c21 100755 --- a/x2p/Makefile.SH +++ b/x2p/Makefile.SH @@ -119,6 +119,7 @@ run_byacc: FORCE check_byacc $(BYACC) a2p.y rm -f a2p.c sed -e 's/(yyn = yydefred\[yystate\])/((yyn = yydefred[yystate]))/' \ + -e 's/(yys = getenv("YYDEBUG"))/((yys = getenv("YYDEBUG")))/' \ -e 's/^yyerrlab://' \ -e 's/^ goto yyerrlab;//' \ -e 's/^yynewerror://' \ diff --git a/x2p/a2p.c b/x2p/a2p.c index 4cf6c51..357e8e4 100644 --- a/x2p/a2p.c +++ b/x2p/a2p.c @@ -2089,7 +2089,7 @@ yyparse() register char *yys; extern char *getenv(); - if (yys = getenv("YYDEBUG")) + if ((yys = getenv("YYDEBUG"))) { yyn = *yys; if (yyn >= '0' && yyn <= '9')