[FFmpeg-devel] [PATCH 2/2] Fix audiomatch complie warning
michael at niedermayer.cc
Thu Aug 25 19:41:35 EEST 2016
On Thu, Aug 25, 2016 at 09:06:42PM +0800, Steven Liu wrote:
> Making sure bestpos is initialized to zero to prevent gcc from kvetching.
> It's harmless (although it's not obvious that it's harmless)
> from code inspection:
> tests/audiomatch.c: In function ‘main’:
> tests/audiomatch.c:40: warning: ‘bestpos’ may be used uninitialized in this
> Thanks to Moritz Barsnick for first bringing this to the attention.
> Signed-off-by: LiuQi <liuqi at gosun.com>
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel