diff options
author | Stefan Schmidt <stefan@slimlogic.co.uk> | 2009-09-30 12:36:13 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-09-30 12:45:35 +0200 |
commit | 19f703a7743ab8854048d55d5dda6024debf60cb (patch) | |
tree | 3883edee1079ab82c678b1031d60356e11df136c | |
parent | aa697c9d51bea05cd5e8f607ace84afd35a7d3b9 (diff) |
pcm_rate_linear: Annotate unused function parameter to avoid compiler warnings.
Signed-off-by: Stefan Schmidt <stefan@slimlogic.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/pcm/pcm_rate_linear.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pcm/pcm_rate_linear.c b/src/pcm/pcm_rate_linear.c index 8b2d2d02..7481b389 100644 --- a/src/pcm/pcm_rate_linear.c +++ b/src/pcm/pcm_rate_linear.c @@ -405,15 +405,15 @@ static void linear_close(void *obj) free(obj); } -static int get_supported_rates(void *rate, unsigned int *rate_min, - unsigned int *rate_max) +static int get_supported_rates(ATTRIBUTE_UNUSED void *rate, + unsigned int *rate_min, unsigned int *rate_max) { *rate_min = SND_PCM_PLUGIN_RATE_MIN; *rate_max = SND_PCM_PLUGIN_RATE_MAX; return 0; } -static void linear_dump(void *rate, snd_output_t *out) +static void linear_dump(ATTRIBUTE_UNUSED void *rate, snd_output_t *out) { snd_output_printf(out, "Converter: linear-interpolation\n"); } @@ -432,7 +432,8 @@ static const snd_pcm_rate_ops_t linear_ops = { .dump = linear_dump, }; -int SND_PCM_RATE_PLUGIN_ENTRY(linear) (unsigned int version, void **objp, snd_pcm_rate_ops_t *ops) +int SND_PCM_RATE_PLUGIN_ENTRY(linear) (ATTRIBUTE_UNUSED unsigned int version, + void **objp, snd_pcm_rate_ops_t *ops) { struct rate_linear *rate; |