diff --git a/libavutil/eval.c b/libavutil/eval.c index 0ca7472ffdbb9e5709c73d05df3f923191ed6154..48f8e66ec6ce0ca6f314e386d092bafe0dd684a1 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -26,6 +26,7 @@ * see http://joe.hotchkiss.com/programming/eval/eval.html */ +#include "attributes.h" #include "avutil.h" #include "common.h" #include "eval.h" @@ -350,7 +351,7 @@ static int parse_dB(AVExpr **e, Parser *p, int *sign) for example, -3dB is not the same as -(3dB) */ if (*p->s == '-') { char *next; - strtod(p->s, &next); + double av_unused ignored = strtod(p->s, &next); if (next != p->s && next[0] == 'd' && next[1] == 'B') { *sign = 0; return parse_primary(e, p);