From: Robert Love <rml@tech9.net>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [patch] ALSA compiler warnings fixes
Date: 18 Nov 2002 15:53:31 -0500 [thread overview]
Message-ID: <1037652811.8374.138.camel@phantasy> (raw)
Linus,
Attached patch fixes numerous warnings in ALSA core of the type "unused
variable foo" due to defined-away functions.
Usual solution applied.
Patch is against current BK, please apply.
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 */
next reply other threads:[~2002-11-18 20:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-18 20:53 Robert Love [this message]
2002-11-18 21:01 ` [patch] ALSA compiler warnings fixes Jeff Garzik
2002-11-18 21:47 ` Robert Love
[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=1037652811.8374.138.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.kernel.org \
--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 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.