1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Diego Biurrun 2011-05-27 20:24:44 +02:00
parent 2146f4928a
commit d6e0729b24

View File

@ -215,6 +215,7 @@ int avfilter_config_links(AVFilterContext *filter)
return 0; return 0;
} }
#ifdef DEBUG
static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms) 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", 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" : ""); perms & AV_PERM_NEG_LINESIZES ? "n" : "");
return buf; return buf;
} }
#endif
static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end) static void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end)
{ {