|
From: Matthias S. <zz...@ge...> - 2016-10-06 06:23:24
|
Hi!
I propose this simple fix (that can be improved later with e.g.
__attribute__((unused)) for gcc).
Currently this code is used to silence a unused warning of the compiler
if NVALGRIND is defined:
#if defined(NVALGRIND)
if (format) *(volatile const char *)format; /* avoid compiler
warning */
return 0;
#else /* NVALGRIND */
This is a simple fix for Bug 358697.
It also adds a testcase.
I consider this added volatile a regression in current trunk (and hope
it will be fixed before next release).
Regards
Matthias
|