This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2926] assert macro contains unreachable code


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]