diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-21 01:44:18 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-24 07:50:56 +0100 |
commit | 3bf07b1a2dfb2a7579f1d4c6ff6d64a444f66be2 (patch) | |
tree | 8fc8696965c48a40fe81d702c3422dab0c4cd3bf /libavcodec/ppc/Makefile | |
parent | 1c9e53d70b4a0157af02070c2a6cf4db0c6f6dee (diff) | |
download | ffmpeg-3bf07b1a2dfb2a7579f1d4c6ff6d64a444f66be2.tar.gz |
avcodec/bitstream: Rewrite code to avoid triggering compiler warning
Clang infers from the existence of a default case that said case can be
taken. In case of libavcodec/bitstream.c said default case consisted of
an av_assert1 that evaluates to nothing in case of the ordinary assert
level. In this case (that doesn't happen) a variable wouldn't be
initialized, so Clang emitted Wsometimes-uninitialized warnings.
Solve this by making sure that the default path also initializes
the aforementioned variable.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/ppc/Makefile')
0 files changed, 0 insertions, 0 deletions