aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-02 01:41:40 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-02 01:41:40 +0000
commit996ccb3043d9237ea8e6e79d6a7c6121b15f9e61 (patch)
tree0dfcfdfd7f957068352137d70e996b8a100926c1 /gdb/stabsread.c
parente4d30c7e6abccf8402a5c48743a829cd6633ee98 (diff)
downloadgdb-996ccb3043d9237ea8e6e79d6a7c6121b15f9e61.zip
gdb-996ccb3043d9237ea8e6e79d6a7c6121b15f9e61.tar.gz
gdb-996ccb3043d9237ea8e6e79d6a7c6121b15f9e61.tar.bz2
* 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.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 2a5b972..1841a76 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -1275,11 +1275,7 @@ read_type (pp, objfile)
/* Name including "struct", etc. */
char *type_name;
- /* Name without "struct", etc. */
- char *type_name_only;
-
{
- char *prefix;
char *from, *to;
/* Set the type code according to the following letter. */
@@ -2005,7 +2001,6 @@ read_cpp_abbrev (fip, pp, type, objfile)
struct objfile *objfile;
{
register char *p;
- const char *prefix;
char *name;
char cpp_abbrev;
struct type *context;
@@ -3112,7 +3107,7 @@ read_huge_number (pp, end, bits)
{
if (bits != NULL)
*bits = -1;
- return;
+ return 0;
}
}
else
@@ -3127,7 +3122,7 @@ read_huge_number (pp, end, bits)
count how many bits are in them). */
if (bits != NULL)
*bits = -1;
- return;
+ return 0;
}
/* -0x7f is the same as 0x80. So deal with it by adding one to