zsh-workers
 help / color / mirror / code / Atom feed
* "ignoring retur values" on Linux
@ 2007-04-21  7:47 Andrey Borzenkov
  0 siblings, 0 replies; only message in thread
From: Andrey Borzenkov @ 2007-04-21  7:47 UTC (permalink / raw)
  To: zsh-workers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Building RPM for Madriva (glibc 2.4/gcc 4.1.2) there are tons of

builtin.c: In function ‘bin_cd’:
builtin.c:796: warning: ignoring return value of ‘chdir’, declared with 
attribute warn_unused_result
builtin.c:803: warning: ignoring return value of ‘chdir’, declared with 
attribute warn_unused_result
builtin.c: In function ‘bin_print’:
builtin.c:3690: warning: ignoring return value of ‘fwrite’, declared with 
attribute warn_unused_result
builtin.c:3701: warning: ignoring return value of ‘fwrite’, declared with 
attribute warn_unused_result
builtin.c:3765: warning: ignoring return value of ‘fwrite’, declared with 
attribute warn_unused_result
builtin.c: In function ‘bin_read’:
builtin.c:4922: warning: ignoring return value of ‘fwrite’, declared with 
attribute warn_unused_result

etc.

I am not sure if sensible check of return values is possible in every case 
thoigh (i.e. - action if check fails).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGKcF5R6LMutpd94wRArjzAKCUnTZiRR6nRt27iZWBOrl5YB7PPgCfbrlw
rDHHBPhzzeZo5bTVUt29T/4=
=V4lv
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-21  7:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-21  7:47 "ignoring retur values" on Linux Andrey Borzenkov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).