--- 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 retur
IRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: robert at linuxfromscratch dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32185
--- Comment #1 from robert at linuxfromscratch dot org 2007-06-02 03:14
---
Created an attachment (id=13651)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13651&action=view)
Patch for fwrite() and getcwd() unused result warnings
--
http://gcc.gnu.org/bugzilla/show_bug
--- Comment #3 from robert at linuxfromscratch dot org 2007-06-03 00:50
---
I checked whether it was fixed in trunk, but you're right I should have made a
patch that applies to trunk. Glibc is giving a false positive here, but the
programmer and compiler are the only ones able to