Commit 8136ab8e authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

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: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 2d924b3a
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment