bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/10793] New: gcc cant get pass unused code in binutils/prdb


From: jerker dot back at gmail dot com
Subject: [Bug binutils/10793] New: gcc cant get pass unused code in binutils/prdbg.c
Date: 16 Oct 2009 21:04:38 -0000

I can't get Interix gcc 3.3 get pass this due to warning settings
(info is unused)

The solution it's a bit ugly, my gcc knowledge could be better.
Maybe you can come up with something more elegant?

===================================================================
RCS file: /cvs/src/src/binutils/prdbg.c,v
retrieving revision 1.23
diff -w -b -B -u -p -r1.23 prdbg.c
--- prdbg.c     10 Sep 2009 13:40:44 -0000      1.23
+++ prdbg.c     16 Oct 2009 20:36:01 -0000
@@ -2088,8 +2088,8 @@ tg_struct_field (void *p, const char *na
 static bfd_boolean
 tg_end_struct_type (void *p ATTRIBUTE_UNUSED)
 {
-  struct pr_handle *info = (struct pr_handle *) p;
-  assert (info->stack != NULL);
+  assert(((struct pr_handle *)p)->stack != NULL);
 
   return TRUE;
 }

-- 
           Summary: gcc cant get pass unused code in binutils/prdbg.c
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: minor
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: jerker dot back at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-unknown-interix6.1
  GCC host triplet: x86_64-unknown-interix6.1
GCC target triplet: x86_64-unknown-interix6.1


http://sourceware.org/bugzilla/show_bug.cgi?id=10793

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]