This commit is contained in:
K. Richard Pixley 1993-09-08 21:23:41 +00:00
parent 6406a86740
commit 72cd0384f2
6 changed files with 13 additions and 5 deletions

View File

@ -1,6 +1,14 @@
Wed Sep 8 13:01:10 1993 K. Richard Pixley (rich@cygnus.com)
Gcc lint.
* c-exp.y (parse_number): initialize i.
* c-typeprint.c (c_type_print_varspec_prefix): include
TYPE_CODE_BITSTRING in switch statements and do nothing.
* c-valprint.c (c_val_print): removed unused variable c.
* ch-valprint.c (chill_val_print): removed unused variable eltlen.
* cp-valprint.c (cp_print_class_method): initialize f & j.
* eval.c (evaluate_subexp): initialize pc2, arg1, arg2.
* expprint.c (print_subexp): initialize myprec, assoc, & tempstr.
* findvar.c (value_from_register): initialize first_addr.
* gdbtypes.c (lookup_struct_elt_type): localize use of temporary
variable typename.

View File

@ -971,7 +971,7 @@ parse_number (p, len, parsed_float, putithere)
{
register LONGEST n = 0;
register LONGEST prevn = 0;
register int i;
register int i = 0;
register int c;
register int base = input_radix;
int unsigned_p = 0;

View File

@ -306,6 +306,7 @@ c_type_print_varspec_prefix (type, stream, show, passed_a_ptr)
case TYPE_CODE_SET:
case TYPE_CODE_RANGE:
case TYPE_CODE_STRING:
case TYPE_CODE_BITSTRING:
/* These types need no prefix. They are listed here so that
gcc -Wall will reveal any types that haven't been handled. */
break;
@ -429,6 +430,7 @@ c_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
case TYPE_CODE_SET:
case TYPE_CODE_RANGE:
case TYPE_CODE_STRING:
case TYPE_CODE_BITSTRING:
/* These types do not need a suffix. They are listed so that
gcc -Wall will report types that may not have been considered. */
break;

View File

@ -94,7 +94,6 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
struct type *elttype;
unsigned eltlen;
LONGEST val;
unsigned char c;
CORE_ADDR addr;
switch (TYPE_CODE (type))

View File

@ -60,7 +60,6 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
LONGEST val;
unsigned int i = 0; /* Number of characters printed. */
struct type *elttype;
unsigned eltlen;
CORE_ADDR addr;
switch (TYPE_CODE (type))

View File

@ -68,8 +68,8 @@ cp_print_class_method (valaddr, type, stream)
FILE *stream;
{
struct type *domain;
struct fn_field *f;
int j;
struct fn_field *f = NULL;
int j = 0;
int len2;
int offset;
char *kind = "";