scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit fb52401a1d119fd02590755c6fd5173ac65210b2
parent 42169001b7912263fc77b4cbc8781b1f54ab62ce
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 17 Jul 2015 21:31:41 +0200

getdefs: remove statement with no effect

Diffstat:
Mcc1/cpp.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -296,10 +296,8 @@ getdefs(Symbol *args[NR_MACROARG], int nargs, char *bp, size_t bufsiz) memcpy(bp, yytext, len); bp += len; bufsiz -= len; - if ((prevc = yytoken) != '#') { - bufsiz; + if ((prevc = yytoken) != '#') *bp++ = ' '; - } next(); } *bp = '\0';