summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-23 18:16:21 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-23 18:58:35 +0200
commit8136ab8e768b3341929f98412071d492fa729a06 (patch)
treedaee4ab3b401f7233872b5f11af939b36d5d7168
parent2d924b3a630869c65fe0c76568910500f54ed057 (diff)
fftools/objpool: Don't use return with expression when returning void
Using tail calls with functions returning void is forbidden (C99/C11 6.8.6.4: "A return statement with an expression shall not appear in a function whose return type is void.") GCC emits a warning because of this when using -pedantic: "ISO C forbids ‘return’ with expression, in function returning void" Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--fftools/objpool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/objpool.c b/fftools/objpool.c
index b1561ecd69..87237cf724 100644
--- a/fftools/objpool.c
+++ b/fftools/objpool.c
@@ -101,11 +101,11 @@ static void *alloc_frame(void)
static void reset_packet(void *obj)
{
- return av_packet_unref(obj);
+ av_packet_unref(obj);
}
static void reset_frame(void *obj)
{
- return av_frame_unref(obj);
+ av_frame_unref(obj);
}
static void free_packet(void **obj)