Commit 5b097399 authored by Diego Biurrun's avatar Diego Biurrun

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’
parent 6ff15cd5
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
* see http://joe.hotchkiss.com/programming/eval/eval.html * see http://joe.hotchkiss.com/programming/eval/eval.html
*/ */
#include "attributes.h"
#include "avutil.h" #include "avutil.h"
#include "common.h" #include "common.h"
#include "eval.h" #include "eval.h"
...@@ -350,7 +351,7 @@ static int parse_dB(AVExpr **e, Parser *p, int *sign) ...@@ -350,7 +351,7 @@ static int parse_dB(AVExpr **e, Parser *p, int *sign)
for example, -3dB is not the same as -(3dB) */ for example, -3dB is not the same as -(3dB) */
if (*p->s == '-') { if (*p->s == '-') {
char *next; char *next;
strtod(p->s, &next); double av_unused ignored = strtod(p->s, &next);
if (next != p->s && next[0] == 'd' && next[1] == 'B') { if (next != p->s && next[0] == 'd' && next[1] == 'B') {
*sign = 0; *sign = 0;
return parse_primary(e, p); return parse_primary(e, p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment