From 3cd9849d9c24b0808e6e55cd7568250acaae2b91 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 29 Jan 2013 16:33:32 +0100 Subject: [PATCH] eval: fix 'warning: ignoring return value of strtod, declared with attribute warn_unused_result' Signed-off-by: Michael Niedermayer --- libavutil/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/eval.c b/libavutil/eval.c index 22b491fef3..712d2f2678 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -467,7 +467,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 v = strtod(p->s, &next); if (next != p->s && next[0] == 'd' && next[1] == 'B') { *sign = 0; return parse_primary(e, p);