mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
topology: Add ATTRIBUTE_UNUSED for unused parameters to fix compiler warning
This commit adds ATTRIBUTE_UNUSED to the unused parameter 'tplg' for
function tplg_parse_streams() and tplg_parse_fe_dai(). These two functions
need to keep 'tplg' as ops for tplg_parse_compound().
The compiler warnings below are fixed:
pcm.c: In function 'tplg_parse_streams':
pcm.c:262:43: warning: unused parameter 'tplg' [-Wunused-parameter]
static int tplg_parse_streams(snd_tplg_t *tplg, snd_config_t *cfg,
^
pcm.c: In function 'tplg_parse_fe_dai':
pcm.c:324:42: warning: unused parameter 'tplg' [-Wunused-parameter]
static int tplg_parse_fe_dai(snd_tplg_t *tplg, snd_config_t *cfg,
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8e3e194a5d
commit
1a0d49be70
1 changed files with 4 additions and 4 deletions
|
|
@ -259,8 +259,8 @@ int tplg_parse_stream_caps(snd_tplg_t *tplg,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse the caps and config of a pcm stream */
|
/* Parse the caps and config of a pcm stream */
|
||||||
static int tplg_parse_streams(snd_tplg_t *tplg, snd_config_t *cfg,
|
static int tplg_parse_streams(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
|
||||||
void *private)
|
snd_config_t *cfg, void *private)
|
||||||
{
|
{
|
||||||
snd_config_iterator_t i, next;
|
snd_config_iterator_t i, next;
|
||||||
snd_config_t *n;
|
snd_config_t *n;
|
||||||
|
|
@ -321,8 +321,8 @@ static int tplg_parse_streams(snd_tplg_t *tplg, snd_config_t *cfg,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse name and id of a front-end DAI (ie. cpu dai of a FE DAI link) */
|
/* Parse name and id of a front-end DAI (ie. cpu dai of a FE DAI link) */
|
||||||
static int tplg_parse_fe_dai(snd_tplg_t *tplg, snd_config_t *cfg,
|
static int tplg_parse_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
|
||||||
void *private)
|
snd_config_t *cfg, void *private)
|
||||||
{
|
{
|
||||||
struct tplg_elem *elem = private;
|
struct tplg_elem *elem = private;
|
||||||
struct snd_soc_tplg_pcm *pcm = elem->pcm;
|
struct snd_soc_tplg_pcm *pcm = elem->pcm;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue