2003-06-02 David Carlton <carlton@math.stanford.edu>

* objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
	* c-valprint.c (c_val_print): Delete unneeded variable 's'.
	* p-valprint.c (pascal_val_print): Ditto.
	* ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
This commit is contained in:
David Carlton 2003-06-02 18:08:16 +00:00
parent d80dbb52aa
commit cdef89d011
5 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2003-06-02 David Carlton <carlton@math.stanford.edu>
* objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
* c-valprint.c (c_val_print): Delete unneeded variable 's'.
* p-valprint.c (pascal_val_print): Ditto.
* ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2003-06-02 Richard Henderson <rth@redhat.com>
* alpha-tdep.c (alpha_push_dummy_call): Use

View File

@ -3181,8 +3181,7 @@ static struct symbol *
standard_lookup (const char *name, domain_enum domain)
{
struct symbol *sym;
struct symtab *symtab;
sym = lookup_symbol (name, (struct block *) NULL, domain, 0, &symtab);
sym = lookup_symbol (name, (struct block *) NULL, domain, 0, NULL);
return sym;
}

View File

@ -213,13 +213,12 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset,
struct value *vt_val;
struct symbol *wsym = (struct symbol *) NULL;
struct type *wtype;
struct symtab *s;
struct block *block = (struct block *) NULL;
int is_this_fld;
if (msymbol != NULL)
wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
VAR_DOMAIN, &is_this_fld, &s);
VAR_DOMAIN, &is_this_fld, NULL);
if (wsym)
{

View File

@ -1421,7 +1421,6 @@ char *find_imps (struct symtab *symtab, struct block *block,
if (tmp == NULL) {
struct symtab *sym_symtab = NULL;
struct symbol *sym = NULL;
struct minimal_symbol *msym = NULL;
@ -1431,7 +1430,7 @@ char *find_imps (struct symtab *symtab, struct block *block,
if (tmp == NULL)
return NULL;
sym = lookup_symbol (selector, block, VAR_DOMAIN, 0, &sym_symtab);
sym = lookup_symbol (selector, block, VAR_DOMAIN, 0, NULL);
if (sym != NULL)
{
if (syms)

View File

@ -222,13 +222,12 @@ pascal_val_print (struct type *type, char *valaddr, int embedded_offset,
struct value *vt_val;
struct symbol *wsym = (struct symbol *) NULL;
struct type *wtype;
struct symtab *s;
struct block *block = (struct block *) NULL;
int is_this_fld;
if (msymbol != NULL)
wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
VAR_DOMAIN, &is_this_fld, &s);
VAR_DOMAIN, &is_this_fld, NULL);
if (wsym)
{