Re: ASoC updates for 2.6.37

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>   sound/soc/codecs/wm8985.c: In function 'wm8985_hw_params':
>   sound/soc/codecs/wm8985.c:731:2: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
> 
> Actually the variable is fine as int.

I'd guess the expected fix is to change '%d' to '%zu'. The reason for it
being size_t is that is used in an expression involving ARRAY_SIZE(...)
which uses sizeof. But it does not really matter in actual fact because
the array will never be large enough to cause sign confusion.

Thanks,
Dimitrios

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux