Remove unused variables.

This commit is contained in:
David Anderson 2014-08-22 21:20:57 -07:00
parent 0cf8eb2854
commit 7a51d5d549

View File

@ -2069,8 +2069,6 @@ static void declglb(declinfo_t *decl,int fpublic,int fstatic,int fstock)
static void declloc(int tokid) static void declloc(int tokid)
{ {
symbol *sym; symbol *sym;
cell val;
char *str;
value lval = {0}; value lval = {0};
int cur_lit=0; int cur_lit=0;
int staging_start; int staging_start;
@ -2817,7 +2815,7 @@ static void decl_const(int vclass)
char constname[sNAMEMAX+1]; char constname[sNAMEMAX+1];
cell val; cell val;
token_t tok; token_t tok;
int tag,exprtag; int exprtag;
int symbolline; int symbolline;
symbol *sym; symbol *sym;
@ -2895,7 +2893,6 @@ static void declstruct(void)
char *str; char *str;
int tok; int tok;
pstruct_t *pstruct; pstruct_t *pstruct;
int size;
/* get the explicit tag (required!) */ /* get the explicit tag (required!) */
tok = lex(&val,&str); tok = lex(&val,&str);
@ -3777,7 +3774,6 @@ methodmap_method_t *parse_method(methodmap_t *map)
typeinfo_t type; typeinfo_t type;
memset(&type, 0, sizeof(type)); memset(&type, 0, sizeof(type));
token_t tok;
if (matchtoken('~')) { if (matchtoken('~')) {
// We got something like "public ~Blah = X" // We got something like "public ~Blah = X"
is_bind = TRUE; is_bind = TRUE;
@ -5042,9 +5038,8 @@ static cell fix_char_size(declinfo_t *decl)
static symbol *funcstub(int tokid, declinfo_t *decl, const int *thistag) static symbol *funcstub(int tokid, declinfo_t *decl, const int *thistag)
{ {
int tok;
char *str; char *str;
cell val,size; cell val;
symbol *sym; symbol *sym;
int fnative = (tokid == tNATIVE || tokid == tMETHODMAP); int fnative = (tokid == tNATIVE || tokid == tMETHODMAP);
int fpublic = (tokid == tPUBLIC); int fpublic = (tokid == tPUBLIC);
@ -5148,10 +5143,9 @@ static symbol *funcstub(int tokid, declinfo_t *decl, const int *thistag)
static int newfunc(declinfo_t *decl, const int *thistag, int fpublic, int fstatic, int stock, symbol **symp) static int newfunc(declinfo_t *decl, const int *thistag, int fpublic, int fstatic, int stock, symbol **symp)
{ {
symbol *sym; symbol *sym;
int argcnt,tok,funcline; int argcnt,funcline;
int opererror; int opererror;
char *str; cell cidx,glbdecl;
cell val,cidx,glbdecl;
short filenum; short filenum;
assert(litidx==0); /* literal queue should be empty */ assert(litidx==0); /* literal queue should be empty */
@ -5422,7 +5416,7 @@ static int argcompare(arginfo *a1,arginfo *a2)
static int declargs(symbol *sym, int chkshadow, const int *thistag) static int declargs(symbol *sym, int chkshadow, const int *thistag)
{ {
char *ptr; char *ptr;
int argcnt,oldargcnt,tok; int argcnt,oldargcnt;
arginfo arg, *arglist; arginfo arg, *arglist;
char name[sNAMEMAX+1]; char name[sNAMEMAX+1];
int fpublic; int fpublic;