[alsa-devel] [PATCH 2/2] ucm: Add ATTRIBUTE_UNUSED for unused parameters of execute_component_seq()

Takashi Iwai tiwai at suse.de
Wed Dec 28 16:23:55 CET 2016


On Tue, 27 Dec 2016 11:08:58 +0100,
mengdong.lin at linux.intel.com wrote:
> 
> From: Mengdong Lin <mengdong.lin at linux.intel.com>
> 
> To fix the following warnings:
> 
> main.c: In function ‘execute_component_seq’:
> main.c:489:24: warning: unused parameter ‘value_list1’ [-Wunused-parameter]
>       struct list_head *value_list1,
>                         ^
> main.c:490:24: warning: unused parameter ‘value_list2’ [-Wunused-parameter]
>       struct list_head *value_list2,
>                         ^
> main.c:491:24: warning: unused parameter ‘value_list3’ [-Wunused-parameter]
>       struct list_head *value_list3,
>                         ^
> 
> Signed-off-by: Mengdong Lin <mengdong.lin at linux.intel.com>

Applied this one.  Thanks.


Takashi

> 
> diff --git a/src/ucm/main.c b/src/ucm/main.c
> index 750e65d..38a5e81 100644
> --- a/src/ucm/main.c
> +++ b/src/ucm/main.c
> @@ -486,9 +486,9 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
>   */
>  static int execute_component_seq(snd_use_case_mgr_t *uc_mgr,
>  				 struct component_sequence *cmpt_seq,
> -				 struct list_head *value_list1,
> -				 struct list_head *value_list2,
> -				 struct list_head *value_list3,
> +				 struct list_head *value_list1 ATTRIBUTE_UNUSED,
> +				 struct list_head *value_list2 ATTRIBUTE_UNUSED,
> +				 struct list_head *value_list3 ATTRIBUTE_UNUSED,
>  				 char *cdev)
>  {
>  	struct use_case_device *device = cmpt_seq->device;
> -- 
> 2.7.4
> 


More information about the Alsa-devel mailing list