All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Fromreide <magfr at lysator.liu.se>
To: powertop@lists.01.org
Subject: Re: [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion)
Date: Fri, 24 Aug 2012 19:38:07 +0200	[thread overview]
Message-ID: <1345829887.2831.1.camel@sara> (raw)
In-Reply-To: 20120824173217.DE8C4DFFDC@linda.rhrk.uni-kl.de

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

On Fri, 2012-08-24 at 18:53 +0200, Joerg Mayer wrote:
> Note: Is this this flag supported on all compilers?

Please don't.

If you really mean to ignore the result values then the canonical thing
to do is to cast them to (void)

/MF


             reply	other threads:[~2012-08-24 17:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24 17:38 Magnus Fromreide [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-25  7:29 [Powertop] [Warning fixes 2/6] Build with -Wno-unused-result for now, it seems at least some of these cases are intentional (see ml discussion) Joerg Mayer
2012-08-24 17:54 Chris Ferron
2012-08-24 16:53 Joerg Mayer

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=1345829887.2831.1.camel@sara \
    --to=powertop@lists.01.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.