public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2926] New: assert macro contains unreachable code
@ 2006-07-14 19:55 Jerry dot James at usu dot edu
  2006-07-14 19:56 ` [Bug libc/2926] " Jerry dot James at usu dot edu
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jerry dot James at usu dot edu @ 2006-07-14 19:55 UTC (permalink / raw)
  To: glibc-bugs

When compiling with gcc and the -Wunreachable-code flag, gcc warns about every
use of the assert macro from <assert.h>.  This was reported as a gcc bug (see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22414), but the gcc team declared it
to be a glibc bug.  Indeed, moving __ASSERT_VOID_CAST inward to apply to the two
instances of 0 in assert and assert_perror leaves the assertions working
correctly and eliminates the warnings for me.  I don't see a place to include a
patch on this page, so I'll submit the bug and hope I can attach a patch later.

-- 
           Summary: assert macro contains unreachable code
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: minor
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: Jerry dot James at usu dot edu
                CC: glibc-bugs at sources dot redhat dot com


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

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-06-16 17:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-14 19:55 [Bug libc/2926] New: assert macro contains unreachable code Jerry dot James at usu dot edu
2006-07-14 19:56 ` [Bug libc/2926] " Jerry dot James at usu dot edu
2006-08-03  8:30 ` drepper at redhat dot com
2007-04-20  7:15 ` roche+kml2 at exalead dot com
2007-05-15  1:56 ` drepper at redhat dot com
2007-06-01 13:33 ` roche+kml2 at exalead dot com
2007-06-16 17:27 ` aj at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).