This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] fix warning in dwarfread.c
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 26 Jun 2003 18:38:32 -0400
- Subject: [PATCH] fix warning in dwarfread.c
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.
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,