diff options
author | K. Richard Pixley <rich@cygnus> | 1993-09-08 21:04:59 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1993-09-08 21:04:59 +0000 |
commit | e7bf1152a956221469c18da38ccd4e623cafd198 (patch) | |
tree | 5597760a7913fc42f3fe92c8569bed2e190972b7 /gdb/gdbtypes.c | |
parent | 0ac0a9f6f14269d2a69c804a8194cc2f7009ab3b (diff) | |
download | gdb-e7bf1152a956221469c18da38ccd4e623cafd198.zip gdb-e7bf1152a956221469c18da38ccd4e623cafd198.tar.gz gdb-e7bf1152a956221469c18da38ccd4e623cafd198.tar.bz2 |
gcc lint
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index cdd7343..c6e41f3 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -684,9 +684,6 @@ lookup_struct_elt_type (type, name, noerr) int noerr; { int i; -#if 0 - char *typename; -#endif if (TYPE_CODE (type) == TYPE_CODE_PTR || TYPE_CODE (type) == TYPE_CODE_REF) @@ -709,9 +706,13 @@ lookup_struct_elt_type (type, name, noerr) the structure tag name is the same as the member name. I.E. when doing "ptype bell->bar" for "struct foo { int bar; int foo; } bell;" Disabled by fnf. */ - typename = type_name_no_tag (type); - if (typename != NULL && STREQ (typename, name)) - return type; + { + char *typename; + + typename = type_name_no_tag (type); + if (typename != NULL && STREQ (typename, name)) + return type; + } #endif for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--) |