------- Comment #3 from pinskia at gcc dot gnu dot org 2006-10-15 19:45 ------- That is because assert checks the result except when -DNDEBUG.
This in turn is really a dup or bug 6906 which is about warning on side effects to assert. *** This bug has been marked as a duplicate of 6906 *** -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29480