From 683462911db5ba1b17c32c523cdefe921f5aaf17 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Fri, 23 Oct 2015 12:36:52 -0400 Subject: avfilter: avoid zero arguments to variadic macro 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. Reviewed-by: Nicolas George Signed-off-by: Ganesh Ajjanagadde --- libavfilter/af_asetrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/af_asetrate.c') diff --git a/libavfilter/af_asetrate.c b/libavfilter/af_asetrate.c index 409c48fd14..66febd71ba 100644 --- a/libavfilter/af_asetrate.c +++ b/libavfilter/af_asetrate.c @@ -39,8 +39,8 @@ typedef struct { OPT_GENERIC(name, field, def, min, max, descr, INT, i64, __VA_ARGS__) static const AVOption asetrate_options[] = { - OPT_INT("sample_rate", sample_rate, 44100, 1, INT_MAX, "set the sample rate"), - OPT_INT("r", sample_rate, 44100, 1, INT_MAX, "set the sample rate"), + OPT_INT("sample_rate", sample_rate, 44100, 1, INT_MAX, "set the sample rate",), + OPT_INT("r", sample_rate, 44100, 1, INT_MAX, "set the sample rate",), {NULL}, }; -- cgit v1.2.3