From: Florian Krohm Date: Sun, 2 Aug 2015 19:35:49 +0000 (+0000) Subject: Silence a few warnings issued by GCC 5.1 claiming that 'res' is X-Git-Tag: svn/VALGRIND_3_11_0~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e1a7a11a0746647c3746983ee5e3a2b55f05f9f;p=thirdparty%2Fvalgrind.git Silence a few warnings issued by GCC 5.1 claiming that 'res' is uninitialised. Perhaps an incorrect clobber or a compiler bug? Anyhow, initialising the variable will do the trick. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15471 --- diff --git a/memcheck/tests/x86/fprem.c b/memcheck/tests/x86/fprem.c index 864c9b076b..c6cd74808e 100644 --- a/memcheck/tests/x86/fprem.c +++ b/memcheck/tests/x86/fprem.c @@ -6,7 +6,7 @@ double do_fprem ( void ) { - double res; + double res = 0.0; __asm__ __volatile__( "ffree %%st(0)\n\t" "ffree %%st(1)\n\t" @@ -21,7 +21,7 @@ double do_fprem ( void ) double do_fprem1 ( void ) { - double res; + double res = 0.0; __asm__ __volatile__( "ffree %%st(0)\n\t" "ffree %%st(1)\n\t" @@ -36,7 +36,7 @@ double do_fprem1 ( void ) double do_fsincos ( void ) { - double res; + double res = 0.0; __asm__ __volatile__( "fldln2\n\t" "fsincos\n\t"