From: Gernot Hillier <gernot.hillier@siemens.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [Xenomai-forge] [PATCH] Silence unused_result warning from write()
Date: Fri, 08 Nov 2013 06:55:50 +0100 [thread overview]
Message-ID: <527C7CE6.6090603@siemens.com> (raw)
In-Reply-To: <527BD591.9060504@xenomai.org>
Am 07.11.2013 19:01, schrieb Gilles Chanteperdrix:
> On 11/07/2013 10:22 AM, Gernot Hillier wrote:
>> Some glibc versions mark write() with attribute warn_unused_result (found in
>> Ubuntu 12.04 / eglibc 2.15 / gcc 4.6.3), so we need to silence this warning,
>> especially when building with -Werror.
>
> Why not casting write result to void, it does not work?
>
No, it doesn't. For rationale, please see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509.
--
Gernot
next prev parent reply other threads:[~2013-11-08 5:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 9:22 [Xenomai] [Xenomai-forge] [PATCH] Silence unused_result warning from write() Gernot Hillier
2013-11-07 18:01 ` Gilles Chanteperdrix
2013-11-08 5:55 ` Gernot Hillier [this message]
2013-11-08 17:23 ` Gilles Chanteperdrix
2013-11-08 18:18 ` Jan Kiszka
2013-11-11 8:36 ` dietmar.schindler
2013-11-11 10:00 ` Gernot Hillier
2014-01-14 12:28 ` [Xenomai] [Xenomai-forge] [PATCH v2] " Gernot Hillier
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=527C7CE6.6090603@siemens.com \
--to=gernot.hillier@siemens.com \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.