diff options
| author | Robert Love <rml@tech9.net> | 2002-11-18 05:10:01 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-11-18 05:10:01 -0800 |
| commit | 33ec2bbf7f2f2d83295e13d19b7aac3734a172f3 (patch) | |
| tree | ebcb7073235a555997405ae1f6a0052082fd3a8a | |
| parent | 925d36b5c6888422761e0c79c87ef77b96de8e27 (diff) | |
[PATCH] ALSA compiler warnings fixes
Fix numerous ALSA core compiler warnings of the type "unused variable foo"
| -rw-r--r-- | include/sound/core.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 4ba70412cb79..4ea5f5ff8849 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -177,11 +177,11 @@ static inline void snd_power_change_state(snd_card_t *card, unsigned int state) 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 */ |
