From 5b097399baa2e38cc513939cfab3a9b6fdbc33df Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 27 Jul 2013 13:14:15 +0200 Subject: eval: Explicitly ignore return value of strtod() in parse_db() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The return value is not needed. This fixes the warning: libavutil/eval.c:353:15: warning: ignoring return value of ‘strtod’ --- libavutil/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavutil/eval.c') diff --git a/libavutil/eval.c b/libavutil/eval.c index 0ca7472ffd..48f8e66ec6 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); -- cgit v1.2.3