From 996ccb3043d9237ea8e6e79d6a7c6121b15f9e61 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 2 Sep 1993 01:41:40 +0000 Subject: * 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. --- gdb/m2-exp.y | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/m2-exp.y') diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index 1d7e801..13b93a0 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -606,6 +606,7 @@ variable: NAME case LOC_LOCAL: case LOC_REF_ARG: case LOC_REGPARM: + case LOC_REGPARM_ADDR: case LOC_LOCAL_ARG: case LOC_BASEREG: case LOC_BASEREG_ARG: @@ -1119,12 +1120,14 @@ yylex () case LOC_ARG: case LOC_REF_ARG: case LOC_REGPARM: + case LOC_REGPARM_ADDR: case LOC_LOCAL: case LOC_LOCAL_ARG: case LOC_BASEREG: case LOC_BASEREG_ARG: case LOC_CONST: case LOC_CONST_BYTES: + case LOC_OPTIMIZED_OUT: return NAME; case LOC_TYPEDEF: -- cgit v1.1