lkml.org 
[lkml]   [2018]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ALSA: ctxfi: use enum type CT_SUM_CTL where appropriate
On Sun, 17 Jun 2018 15:46:49 +0200,
Stefan Agner wrote:
>
> Currently a variable of type enum CT_AMIXER_CTL is used for enum
> CT_SUM_CTL values. This leads to warnings when using clang:
> sound/pci/ctxfi/ctmixer.c:945:32: warning: implicit conversion from enumeration type
> 'enum CT_SUM_CTL' to different enumeration type 'enum CT_AMIXER_CTL'
> [-Wenum-conversion]
> for (i = AMIXER_MASTER_F, j = SUM_IN_F;
> ~ ^~~~~~~~
> sound/pci/ctxfi/ctmixer.c:975:29: warning: implicit conversion from enumeration type
> 'enum CT_SUM_CTL' to different enumeration type 'enum CT_AMIXER_CTL'
> [-Wenum-conversion]
> for (i = AMIXER_PCM_F, j = SUM_IN_F; i <= AMIXER_PCM_S; i++, j++) {
> ~ ^~~~~~~~
>
> Introduce enum CT_SUM_CTL k and it instead.
>
> Signed-off-by: Stefan Agner <stefan@agner.ch>

Applied, thanks.


Takashi

\
 
 \ /
  Last update: 2018-06-18 17:41    [W:0.043 / U:1.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site