mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put inside #if) unused variables and labels. Fix unclosed comment. Deal with enumeration values unhandled in switch statements. Make sure non-void functions return values. Include appropriate headers. * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned value < 0.
This commit is contained in:
@@ -436,8 +436,6 @@ lookup_symbol (name, block, namespace, is_a_field_of_this, symtab)
|
||||
register struct objfile *objfile;
|
||||
register struct block *b;
|
||||
register struct minimal_symbol *msymbol;
|
||||
char *temp;
|
||||
extern char *gdb_completer_word_break_characters;
|
||||
|
||||
/* Search specified block and its superiors. */
|
||||
|
||||
@@ -1964,7 +1962,6 @@ decode_line_1 (argptr, funfirstline, default_symtab, default_line, canonical)
|
||||
if ((copy[0] == copy [p - *argptr - 1])
|
||||
&& strchr (gdb_completer_quote_characters, copy[0]) != NULL)
|
||||
{
|
||||
char *temp;
|
||||
copy [p - *argptr - 1] = '\0';
|
||||
copy++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user