forked from Imagelibrary/binutils-gdb
* 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:
@@ -432,8 +432,8 @@ start_subfile (name, dirname)
|
||||
|
||||
p = strrchr (subfile->name, '.');
|
||||
if (p != NULL
|
||||
&& (p[1] == 'C' && p[2] == '\0'
|
||||
|| p[1] == 'c' && p[2] == 'c' && p[3] == '\0'))
|
||||
&& ((p[1] == 'C' && p[2] == '\0')
|
||||
|| (p[1] == 'c' && p[2] == 'c' && p[3] == '\0')))
|
||||
for (s = subfiles; s != NULL; s = s->next)
|
||||
if (s->language == language_c)
|
||||
s->language = language_cplus;
|
||||
|
||||
Reference in New Issue
Block a user