Skip to contentSkip to conversation

linux-next: build warning after merge of the sound-asoc tree

DISCUSSION Stephen Rothwell 1 participant 1 message Sep 7, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

sound/soc/soc-dapm.c: In function 'snd_soc_dai_link_event':
sound/soc/soc-dapm.c:3771:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

  return ret;
         ^~~

This looks like a (subtle) false positive. You have to assume that all the loops will be executed at least once.

Probably introduced by commit

4a75aae17b2a ("ASoC: dapm: Add support for multi-CODEC CODEC to CODEC links")

Signature · 2 lines
Cheers,
Stephen Rothwell