[PATCH] ASoC: soc-compress: avoid false-positive Wuninitialized warning
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Thu Apr 23 00:18:37 CEST 2020
Hi
> gcc-6.5 and earlier show a new warning:
>
> sound/soc/soc-compress.c: In function ‘soc_compr_open’:
> sound/soc/soc-compress.c:75:28: warning: ‘component’ is used uninitialized in this function [-Wuninitialized]
> struct snd_soc_component *component, *save = NULL;
> ^~~~~~~~~
>
> Simplest fix is to initialize it to avoid the warning.
>
> Reported-by: kbuild test robot <lkp at intel.com>
> Cc: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> Link: https://lore.kernel.org/lkml/202004201540.vYPhhYMs%25lkp@intel.com
> Signed-off-by: Rong Chen <rong.a.chen at intel.com>
> ---
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Thank you for your help !!
Best regards
---
Kuninori Morimoto
More information about the Alsa-devel
mailing list