diff mbox series

[FFmpeg-devel,3/4] avformat/mxfenc: add a return at the end of non-void functions

Message ID 20210806133120.2914-3-jamrial@gmail.com
State Accepted
Commit ec59ca0e6f4ab8a54600824be7cd2aa7fa1c00ec
Headers show
Series [FFmpeg-devel,1/4] fftools/ffmpeg_filter: add a return at the end of non-void functions | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer Aug. 6, 2021, 1:31 p.m. UTC
Fixes compilation with GCC 11 when configured with --disable-optimizations

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/mxfenc.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 5ec619675b..229817dba6 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -507,6 +507,7 @@  static const MXFLocalTagPair* mxf_lookup_local_tag(int tag)
 
     // this assert can only be hit during development
     av_assert0(0 && "you forgot to add your new tag to mxf_local_tag_batch");
+    return NULL;
 }
 
 static void mxf_mark_tag_unused(MXFContext *mxf, int tag)