[2/2] ucm: Add ATTRIBUTE_UNUSED for unused parameters of execute_component_seq()
diff mbox

Message ID 1482833338-2330-1-git-send-email-mengdong.lin@linux.intel.com
State New
Headers show

Commit Message

mengdong.lin@linux.intel.com Dec. 27, 2016, 10:08 a.m. UTC
From: Mengdong Lin <mengdong.lin@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@linux.intel.com>

Comments

Takashi Iwai Dec. 28, 2016, 3:23 p.m. UTC | #1
On Tue, 27 Dec 2016 11:08:58 +0100,
mengdong.lin@linux.intel.com wrote:
> 
> From: Mengdong Lin <mengdong.lin@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@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
>

Patch
diff mbox

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;