This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix warning in dwarfread.c


Elena Zannoni writes:
 > 
 > I got a warning using gcc 3.3.
 > 
 > elena
 > 
 > 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
 > 
 >         * dwarfread.c (decode_modified_type): Gag new compiler warning.
 > 

committed to gdb6 branch and trunk


elena

 > 
 > Index: dwarfread.c
 > ===================================================================
 > RCS file: /cvs/uberbaum/gdb/dwarfread.c,v
 > retrieving revision 1.28
 > diff -u -p -r1.28 dwarfread.c
 > --- dwarfread.c	23 Jun 2003 19:51:38 -0000	1.28
 > +++ dwarfread.c	26 Jun 2003 22:29:03 -0000
 > @@ -3198,8 +3198,12 @@ decode_modified_type (char *modifiers, u
 >  		     DIE_ID, DIE_NAME);	/* FIXME */
 >  	  break;
 >  	default:
 > -	  if (!(MOD_lo_user <= (unsigned char) modifier
 > +	  if (!(MOD_lo_user <= (unsigned char) modifier))
 > +#if 0
 > +/* This part of the test would always be true, and it triggers a compiler
 > +   warning.  */
 >  		&& (unsigned char) modifier <= MOD_hi_user))
 > +#endif
 >  	    {
 >  	      complaint (&symfile_complaints,
 >  			 "DIE @ 0x%x \"%s\", unknown type modifier %u", DIE_ID,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]