diff mbox series

[FFmpeg-devel] avfilter/avfilter: add a return at the end of a non-void function

Message ID 20210824123641.4002-1-jamrial@gmail.com
State Accepted
Commit 61b38f7aef8d2f34135eb6a1e1e637d4fef667d2
Headers show
Series [FFmpeg-devel] avfilter/avfilter: add a return at the end of a non-void function | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

James Almer Aug. 24, 2021, 12:36 p.m. UTC
Fixes compilation with GCC 11 when configured with "--disable-optimizations --toolchain=gcc-tsan"

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavfilter/avfilter.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Nicolas George Aug. 24, 2021, 1:12 p.m. UTC | #1
James Almer (12021-08-24):
> Fixes compilation with GCC 11 when configured with "--disable-optimizations --toolchain=gcc-tsan"
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavfilter/avfilter.c | 1 +
>  1 file changed, 1 insertion(+)

Ok, thanks.

Regards,
James Almer Aug. 24, 2021, 1:14 p.m. UTC | #2
On 8/24/2021 10:12 AM, Nicolas George wrote:
> James Almer (12021-08-24):
>> Fixes compilation with GCC 11 when configured with "--disable-optimizations --toolchain=gcc-tsan"
>>
>> Signed-off-by: James Almer <jamrial@gmail.com>
>> ---
>>   libavfilter/avfilter.c | 1 +
>>   1 file changed, 1 insertion(+)
> 
> Ok, thanks.
> 
> Regards,

Applied (Andreas also OKd it on IRC).
diff mbox series

Patch

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 4b6a3d1e8f..a04f8ed62f 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -588,6 +588,7 @@  int avfilter_pad_count(const AVFilterPad *pads)
     }
 
     av_assert0(!"AVFilterPad list not from a filter");
+    return AVERROR_BUG;
 }
 #endif