Hide Forgot
Created attachment 551270 [details] Test program using the offending valgrind macros Description of problem: Trying to compile programs using the valgrind leak check macros causes warnings/errors about _qzz_res being set but unused. Version-Release number of selected component (if applicable): valgrind-3.6.1-6.fc16.x86_64 How reproducible: always Steps to Reproduce: 1. gcc -O2 -Wunused-but-set-variable test.c 2. 3. Actual results: Compilation warns/fails with error about _qzz_res being unused but assigned Expected results: No warnings/errors emitted by gcc Additional info:
Created attachment 551275 [details] Proposed patch silencing the gcc warning/error Adding __attribute__((unused)) to the _qzz_res variable declarations in these macros in include/memcheck.h fixes the problem. {__attribute__((unused)) unsigned long _qzz_res; \
Should be fixed in valgrind-3.7.0-1.fc17.