Commit d6e0729b authored by Diego Biurrun's avatar Diego Biurrun

avfilter: Surround function only used in debug mode by appropriate #ifdef.

This fixes the warning:
libavfilter/avfilter.c:219: warning: ‘ff_get_ref_perms_string’ defined but not used
parent 2146f492
......@@ -215,6 +215,7 @@ int avfilter_config_links(AVFilterContext *filter)
return 0;
}
#ifdef DEBUG
static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
{
snprintf(buf, buf_size, "%s%s%s%s%s%s",
......@@ -226,6 +227,7 @@ static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
perms & AV_PERM_NEG_LINESIZES ? "n" : "");
return buf;
}
#endif
static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)
{
......
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