This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2926] assert macro contains unreachable code
- From: "roche+kml2 at exalead dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Apr 2007 07:14:54 -0000
- Subject: [Bug libc/2926] assert macro contains unreachable code
- References: <20060714195513.2926.Jerry.James@usu.edu>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From roche+kml2 at exalead dot com 2007-04-20 08:14 -------
This patch now raises a new gcc warning when compiling with -W and -pedantic for
each assert() with a condition true at compile time.
The following code snippet demonstrates the isssue:
#include <assert.h>
void foo(void) { assert(sizeof(char) == 1); }
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
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.