aboutsummaryrefslogtreecommitdiff
path: root/libavutil/eval.c
diff options
context:
space:
mode:
authorDiego Biurrun2013-07-27 13:14:15 +0200
committerDiego Biurrun2013-07-27 16:00:41 +0200
commit5b097399baa2e38cc513939cfab3a9b6fdbc33df (patch)
tree8581fcf17cdb5318329f63b56c598a0da604f7f5 /libavutil/eval.c
parent6ff15cd569e1345bc3612fb69ad3003b104fe50d (diff)
eval: Explicitly ignore return value of strtod() in parse_db()
The return value is not needed. This fixes the warning: libavutil/eval.c:353:15: warning: ignoring return value of ‘strtod’
Diffstat (limited to 'libavutil/eval.c')
-rw-r--r--libavutil/eval.c3
1 files changed, 2 insertions, 1 deletions
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);