All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giacomo Catenazzi <cate@debian.org>
To: Robert Love <rml@tech9.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] ALSA compiler warnings fixes
Date: Tue, 19 Nov 2002 12:30:21 +0100	[thread overview]
Message-ID: <3DDA20CD.8090502@debian.org> (raw)
In-Reply-To: <fa.h0vvikv.k5838k@ifi.uio.no>

> +#define snd_power_unlock(card)		do { (void)(card); } while (0)



Why do we use in kernel:
	do { (void)(foobar); } while (0)
instead of the simpler and normally used in std files (e.g. assert.h):
	((void)(foobar),0)
?

The "do while(0)" is used for multi-statment macros, not the case for
void statment!

ciao
	giacomo


       reply	other threads:[~2002-11-19 11:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.h0vvikv.k5838k@ifi.uio.no>
2002-11-19 11:30 ` Giacomo Catenazzi [this message]
2002-11-18 20:53 [patch] ALSA compiler warnings fixes Robert Love
2002-11-18 21:01 ` Jeff Garzik
2002-11-18 21:47   ` Robert Love

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=3DDA20CD.8090502@debian.org \
    --to=cate@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@tech9.net \
    /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.