* [PATCH 2/2] ucm: Add ATTRIBUTE_UNUSED for unused parameters of execute_component_seq()
@ 2016-12-27 10:08 mengdong.lin
2016-12-28 15:23 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: mengdong.lin @ 2016-12-27 10:08 UTC (permalink / raw)
To: alsa-devel; +Cc: tiwai, liam.r.girdwood, Mengdong Lin, mengdong.lin
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>
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] ucm: Add ATTRIBUTE_UNUSED for unused parameters of execute_component_seq()
2016-12-27 10:08 [PATCH 2/2] ucm: Add ATTRIBUTE_UNUSED for unused parameters of execute_component_seq() mengdong.lin
@ 2016-12-28 15:23 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2016-12-28 15:23 UTC (permalink / raw)
To: mengdong.lin; +Cc: liam.r.girdwood, mengdong.lin, alsa-devel
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
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-28 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-27 10:08 [PATCH 2/2] ucm: Add ATTRIBUTE_UNUSED for unused parameters of execute_component_seq() mengdong.lin
2016-12-28 15:23 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.