www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/20/14:07:48

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200106201807.UAA22977@father.ludd.luth.se>
Subject: signed/unsigned issues mysteries and in bison.simple
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Wed, 20 Jun 2001 20:07:45 +0200 (MET DST)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

FYI:

make -C fsdb e
gcc ... -c ed.c
bison expr.y -o expr.c
gcc ... -c expr.c
expr.y:80: warning: `YYDEBUG' is not defined
expr.y:102: warning: `YYDEBUG' is not defined
expr.y:111: warning: `YYDEBUG' is not defined
bison.simple:128: warning: `YYDEBUG' is not defined
bison.simple:143: warning: `YYMAXDEPTH' is not defined
bison.simple:260: warning: `YYDEBUG' is not defined
bison.simple:349: warning: `YYDEBUG' is not defined
bison.simple:358: warning: `YYDEBUG' is not defined
bison.simple:383: warning: `YYDEBUG' is not defined
bison.simple:397: warning: `YYDEBUG' is not defined
bison.simple:406: warning: `YYDEBUG' is not defined
bison.simple:448: warning: `YYDEBUG' is not defined
bison.simple:481: warning: `YYDEBUG' is not defined
bison.simple:505: warning: `YYDEBUG' is not defined
bison.simple:612: warning: `YYDEBUG' is not defined
bison.simple:645: warning: `YYDEBUG' is not defined
bison.simple:680: warning: `YYDEBUG' is not defined
bison.simple: In function `yyparse':
bison.simple:254: warning: `yyval' might be used uninitialized in this function

...

make -C stub
gcc ... -c djasm.c
bison.simple:143: warning: `YYMAXDEPTH' is not defined
bison.simple: In function `yyparse':
bison.simple:569: warning: comparison between signed and unsigned
bison.simple:581: warning: comparison between signed and unsigned


I'm perplexed by the warnings from expr.y as lines 77-83 are:

        | '[' expr ']'
          { if (valid_addr ($2, 4))
              { long l; read_child ($2, &l, 4); $$ = l; }
            else
              yyerror ("Error reading child");
          }
        | expr ':' NUM


As for the bison.simple warnings I don't know what to do.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019