From: Florian Krohm Date: Wed, 5 Oct 2011 03:29:57 +0000 (+0000) Subject: Attempt to unbreak this testcase on systems with GCC 4.5.1 and newer. X-Git-Tag: svn/VALGRIND_3_7_0~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31bc24678745b8b6907f478430a0a4dfc17a04d1;p=thirdparty%2Fvalgrind.git Attempt to unbreak this testcase on systems with GCC 4.5.1 and newer. I suspect the breakage is related to GCC's debug info. Replace initialization with explicit assignment statement. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12100 --- diff --git a/exp-sgcheck/tests/bad_percentify.c b/exp-sgcheck/tests/bad_percentify.c index 94f5559e12..0d7f2b3bb2 100644 --- a/exp-sgcheck/tests/bad_percentify.c +++ b/exp-sgcheck/tests/bad_percentify.c @@ -98,8 +98,8 @@ static UInt vprintf_WRK ( OutputSink* sink, { printf_buf_t myprintf_buf = { "", 0, sink }; - UInt ret - = vprintf_to_buf(&myprintf_buf, format, vargs); + UInt ret; + ret = vprintf_to_buf(&myprintf_buf, format, vargs); // Write out any chars left in the buffer. if (myprintf_buf.buf_used > 0) { send_bytes_to_logging_sink( myprintf_buf.sink,