public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Jeff Garzik <jgarzik@pobox.com>, perex@suse.cz
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [patch] ALSA compiler warnings fixes
Date: 18 Nov 2002 16:47:26 -0500	[thread overview]
Message-ID: <1037656046.1374.2.camel@phantasy> (raw)
In-Reply-To: <3DD95535.8010707@pobox.com>

On Mon, 2002-11-18 at 16:01, Jeff Garzik wrote:

> ALSA has an active maintainer, you should at least CC them on
>  patches to their subsystem...

It is hard to tell, they are off on their own list with their own CVS...

Here it is again.  Is this OK with you guys?  It fixes a bunch of
warnings in my compile.

	Robert Love


Fix numerous ALSA core compiler warnings of the type "unused variable foo"

 include/sound/core.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


diff -urN linux-2.5.48/include/sound/core.h linux/include/sound/core.h
--- linux-2.5.48/include/sound/core.h	2002-11-17 23:29:57.000000000 -0500
+++ linux/include/sound/core.h	2002-11-18 15:51:59.000000000 -0500
@@ -177,11 +177,11 @@
 	wake_up(&card->power_sleep);
 }
 #else
-#define snd_power_lock(card) do { ; } while (0)
-#define snd_power_unlock(card) do { ; } while (0)
-#define snd_power_wait(card) do { ; } while (0)
-#define snd_power_get_state(card) SNDRV_CTL_POWER_D0
-#define snd_power_change_state(card, state) do { ; } while (0)
+#define snd_power_lock(card)		do { (void)(card); } while (0)
+#define snd_power_unlock(card)		do { (void)(card); } while (0)
+#define snd_power_wait(card)		do { (void)(card); } while (0)
+#define snd_power_get_state(card)	SNDRV_CTL_POWER_D0
+#define snd_power_change_state(card, state)	do { (void)(card); } while (0)
 #endif
 
 /* device.c */




  reply	other threads:[~2002-11-18 21:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [not found] <fa.h0vvikv.k5838k@ifi.uio.no>
2002-11-19 11:30 ` Giacomo Catenazzi

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=1037656046.1374.2.camel@phantasy \
    --to=rml@tech9.net \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    --cc=torvalds@transmeta.com \
    /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