--- 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 ***
--
--- Comment #2 from robert at linuxfromscratch dot org 2006-10-15 19:41
---
echo '#include
int main () {
chdir( "/" );
}' > example.c
$ gcc -o example example.c -D_FORTIFY_SOURCE -O2
example.c: In function 'main':
example.c:5: warning: ignoring return value of 'chdir', declared with a