[FFmpeg-cvslog] eval: fix 'warning: ignoring return value of strtod, declared with attribute warn_unused_result'

Michael Niedermayer git at videolan.org
Tue Jan 29 17:10:34 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 29 16:33:32 2013 +0100| [3cd9849d9c24b0808e6e55cd7568250acaae2b91] | committer: Michael Niedermayer

eval: fix 'warning: ignoring return value of strtod, declared with attribute warn_unused_result'

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3cd9849d9c24b0808e6e55cd7568250acaae2b91
---

 libavutil/eval.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index 22b491f..712d2f2 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);



More information about the ffmpeg-cvslog mailing list