From: Peter Johnson Date: Sun, 19 Nov 2006 01:04:29 +0000 (-0000) Subject: Clean up a few minor nits (warnings). X-Git-Tag: v0.6.0~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52055a435debd06b8e320d740a924ba749b34f2c;p=yasm Clean up a few minor nits (warnings). svn path=/trunk/yasm/; revision=1690 --- diff --git a/genstring.c b/genstring.c index c00901ce..78f7c451 100644 --- a/genstring.c +++ b/genstring.c @@ -38,7 +38,6 @@ main(int argc, char *argv[]) int i; char *str; char *strp; - char *charp; size_t len; if (argc < 4) { diff --git a/tools/re2c/code.c b/tools/re2c/code.c index 5e4dd78c..1c72517a 100644 --- a/tools/re2c/code.c +++ b/tools/re2c/code.c @@ -4,6 +4,7 @@ #include "tools/re2c/substr.h" #include "tools/re2c/globals.h" #include "tools/re2c/dfa.h" +#include "tools/re2c/parse.h" static void useLabel(size_t value) { while (value >= vUsedLabelAlloc) { @@ -849,7 +850,7 @@ void DFA_emit(DFA *d, FILE *o){ Go_genGoto(&s->go, tmpo, s, s->next, &readCh); } fclose(tmpo); - unlink("re2c.tmp"); + remove("re2c.tmp"); maxFillIndexes = vFillIndexes; vFillIndexes = orgVFillIndexes; oline = nOrgOline; @@ -876,7 +877,7 @@ void DFA_emit(DFA *d, FILE *o){ oline++; useLabel(label); } else { - unsigned int i; + int i; fputs("\tswitch(YYGETSTATE()) {\n", o); fputs("\t\tcase -1: goto yy0;\n", o); diff --git a/tools/re2c/substr.c b/tools/re2c/substr.c index 0ebfc283..c750fb9d 100644 --- a/tools/re2c/substr.c +++ b/tools/re2c/substr.c @@ -5,7 +5,7 @@ void SubStr_out(const SubStr *s, FILE *o) { - int i; + unsigned int i; fwrite(s->str, s->len, 1, o); for (i=0; ilen; i++) if (s->str[i] == '\n')