From: Andrey Borzenkov <arvidjaar@newmail.ru>
To: zsh-workers@sunsite.dk
Subject: "ignoring retur values" on Linux
Date: Sat, 21 Apr 2007 11:47:04 +0400 [thread overview]
Message-ID: <200704211147.05290.arvidjaar@newmail.ru> (raw)
-----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-----
reply other threads:[~2007-04-21 7:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704211147.05290.arvidjaar@newmail.ru \
--to=arvidjaar@newmail.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).