scc

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

commit fe6c10495006c3e66a20a5a97e72d292117a1116
parent 77b69ae26c69fd4b8f9d6b7de65da5f61d09f2b0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2018 15:50:32 +0000

Remove unreachable goto

Error() is not supposed to return.

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

diff --git a/as/parser.c b/as/parser.c @@ -141,10 +141,8 @@ repeat: n = strlen(buff); if (n == 0) goto repeat; - if (buff[n-1] != '\n') { + if (buff[n-1] != '\n') error("line too long"); - goto repeat; - } buff[n-1] = '\0'; if (extract(buff, n, lp) == 0)