aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-06-27 13:09:38 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-06-27 13:09:38 +0000
commit3cb3398dc3d81110d0b75a182b309042bc356b8a (patch)
tree6471e94809644652e31c069f9f3f7ecb134883ad /gdb/dwarfread.c
parentdc17f155ff8ea25735376e7a7b0098f9e48984b5 (diff)
downloadgdb-3cb3398dc3d81110d0b75a182b309042bc356b8a.zip
gdb-3cb3398dc3d81110d0b75a182b309042bc356b8a.tar.gz
gdb-3cb3398dc3d81110d0b75a182b309042bc356b8a.tar.bz2
2003-06-27 Elena Zannoni <ezannoni@redhat.com>
* dwarfread.c (decode_modified_type): Gag new compiler warning.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index ff65db0..e6f2a2e 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,