This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] fix warning in dwarfread.c
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc:
- Date: Fri, 27 Jun 2003 09:42:00 -0400
- Subject: Re: [PATCH] fix warning in dwarfread.c
- References: <16123.30184.642647.645807@localhost.redhat.com>
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,