Avoid that using any of the VALGRIND_DISABLE_ERROR_REPORTING,
VALGRIND_ENABLE_ERROR_REPORTING, VALGRIND_DO_ADDED_LEAK_CHECK,
VALGRIND_DO_CHANGED_LEAK_CHECK macros causes gcc 4.6 to print
a warning message about assigning a value to an unused variable.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12110 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/valgrind.h b/include/valgrind.h
index 7bce103..a3669aa 100644
--- a/include/valgrind.h
+++ b/include/valgrind.h
@@ -4041,22 +4041,21 @@
    number of VALGRIND_ENABLE_ERROR_REPORTING calls needed to re-enable
    reporting.  Child threads do not inherit this setting from their
    parents -- they are always created with reporting enabled. */
-#define VALGRIND_DISABLE_ERROR_REPORTING                           \
-   {unsigned int _qzz_res;                                         \
-    VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                        \
-                               VG_USERREQ__CHANGE_ERR_DISABLEMENT, \
-                               1, 0, 0, 0, 0);                     \
-   }
+#define VALGRIND_DISABLE_ERROR_REPORTING                                \
+  do {                                                                  \
+    VALGRIND_DO_CLIENT_REQUEST_EXPR(0,                                  \
+                                    VG_USERREQ__CHANGE_ERR_DISABLEMENT, \
+                                    1, 0, 0, 0, 0);                     \
+  } while (0)
 
 /* Re-enable error reporting, as per comments on
    VALGRIND_DISABLE_ERROR_REPORTING. */
-#define VALGRIND_ENABLE_ERROR_REPORTING                            \
-   {unsigned int _qzz_res;                                         \
-    VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                        \
-                               VG_USERREQ__CHANGE_ERR_DISABLEMENT, \
-                               (-1), 0, 0, 0, 0);                  \
-   }
-
+#define VALGRIND_ENABLE_ERROR_REPORTING                                 \
+  do {                                                                  \
+    VALGRIND_DO_CLIENT_REQUEST_EXPR(0,                                  \
+                                    VG_USERREQ__CHANGE_ERR_DISABLEMENT, \
+                                    -1, 0, 0, 0, 0);                    \
+  } while (0)
 
 #undef PLAT_x86_darwin
 #undef PLAT_amd64_darwin