qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: blauwirbel@gmail.com
Cc: blueswirl@gmail.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/5] Avoid GCC extension ?:
Date: Mon, 09 Jul 2012 09:35:58 +0200	[thread overview]
Message-ID: <m3d3451j4x.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <5b88891d9683e0289cd8e24a999ac9d1fdb3fdb3.1341748181.git.blauwirbel@gmail.com> (blauwirbel@gmail.com's message of "Sun, 8 Jul 2012 11:51:26 +0000")

blauwirbel@gmail.com writes:

> From: Blue Swirl <blauwirbel@gmail.com>
>
> Replace expr1 ?: expr2 with expr1 ? expr1 : expr2 as K&R intended.
>
> If expr1 has side effects, introduce a temporary variable.
>
> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
> ---
>  block.c              |    6 ++++--
>  block/qcow2.c        |    6 ++++--
>  bt-vhci.c            |    2 +-
>  hw/bt-hci.c          |    5 +++--
>  hw/bt.c              |    2 +-
>  hw/gumstix.c         |    3 ++-
>  hw/omap2.c           |    4 ++--
>  hw/omap_clk.c        |    4 ++--
>  hw/omap_uart.c       |    4 ++--
>  hw/onenand.c         |    9 +++++----
>  hw/qdev-addr.c       |    2 +-
>  hw/qdev-monitor.c    |    3 ++-
>  hw/qdev-properties.c |    4 ++--
>  hw/qdev.c            |    3 ++-
>  hw/scsi-disk.c       |    3 ++-
>  hw/tsc210x.c         |    7 +++++--
>  hw/usb/dev-hub.c     |    2 +-
>  hw/wm8750.c          |    9 ++++++---
>  hw/xen_disk.c        |    4 +++-
>  path.c               |    5 ++++-
>  tests/libqtest.c     |    2 +-
>  vl.c                 |    3 ++-
>  22 files changed, 57 insertions(+), 35 deletions(-)

Practical benefits?

  parent reply	other threads:[~2012-07-09  8:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 11:51 [Qemu-devel] [PATCH 0/5] portability patches blauwirbel
2012-07-08 11:51 ` [Qemu-devel] [PATCH 1/5] Avoid GCC extension ?: blauwirbel
2012-07-08 12:09   ` Andreas Schwab
2012-07-08 12:14     ` Blue Swirl
2012-07-11 12:54     ` Kevin Wolf
2012-07-11 13:09       ` Peter Maydell
2012-07-11 13:12         ` 陳韋任 (Wei-Ren Chen)
2012-07-12 20:34           ` Blue Swirl
2012-07-12 20:28       ` Blue Swirl
2012-07-12 21:08         ` Peter Maydell
2012-07-13 14:47           ` Blue Swirl
2012-07-13  9:05         ` Kevin Wolf
2012-07-13 14:58           ` Blue Swirl
2012-07-09  7:35   ` Markus Armbruster [this message]
2012-07-10 19:09     ` Blue Swirl
2012-07-08 11:51 ` [Qemu-devel] [PATCH 2/5] Avoid returning void blauwirbel
2012-07-08 11:51 ` [Qemu-devel] [PATCH 3/5] Use __asm__ instead of asm or __asm blauwirbel
2012-07-08 11:51 ` [Qemu-devel] [PATCH 4/5] Avoid unportable %m format blauwirbel
2012-07-10 20:53   ` Anthony Liguori
2012-07-10 21:12     ` Stefan Weil
2012-07-10 21:23       ` Anthony Liguori
2012-07-12 19:43     ` Blue Swirl
2012-07-08 11:51 ` [Qemu-devel] [PATCH 5/5] Avoid redefining inline blauwirbel

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=m3d3451j4x.fsf@blackfin.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=blueswirl@gmail.com \
    --cc=qemu-devel@nongnu.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 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).