[FFmpeg-devel] [PATCH 4/5] avfilter: avoid zero arguments to variadic macro

Ganesh Ajjanagadde gajjanag at mit.edu
Sat Oct 24 15:37:12 CEST 2015


On Sat, Oct 24, 2015 at 9:33 AM, Nicolas George <george at nsup.org> wrote:
> Le tridi 3 brumaire, an CCXXIV, Ganesh Ajjanagadde a écrit :
>> ISO C requires at least one argument in the place of the ellipsis in a
>> variadic macro. In particular, under -pedantic, this triggers the
>> warning -Wgnu-zero-variadic-macro-arguments on clang 3.7.
>>
>> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
>> ---
>>  libavfilter/af_asetrate.c |  4 ++--
>>  libavfilter/asrc_sine.c   | 18 +++++++++---------
>>  2 files changed, 11 insertions(+), 11 deletions(-)
>
> Ok. Good catch.

Thanks for the super quick review. Will apply shortly. Do you (or
others) think adding -Wgnu-zero-variadic-macro-arguments to configure
is a good idea?

>
> Regards,
>
> --
>   Nicolas George
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list