From: Elena Zannoni Date: Fri, 27 Jun 2003 13:09:38 +0000 (+0000) Subject: 2003-06-27 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3cb3398dc3d81110d0b75a182b309042bc356b8a;p=binutils-gdb.git 2003-06-27 Elena Zannoni * dwarfread.c (decode_modified_type): Gag new compiler warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f453616e5d5..758a96bc15f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-06-27 Elena Zannoni + + * dwarfread.c (decode_modified_type): Gag new compiler warning. + 2003-06-26 Elena Zannoni * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index ff65db047e9..e6f2a2e6b7e 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -3198,8 +3198,12 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype) 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,