mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
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>
This commit is contained in:
parent
aa697c9d51
commit
19f703a774
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue