]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[linux] Avoid unused-but-set variable warning in gcc 4.6
authorThomas Miletich <thomas.miletich@gmail.com>
Mon, 28 Mar 2011 12:43:31 +0000 (14:43 +0200)
committerMichael Brown <mcb30@ipxe.org>
Mon, 28 Mar 2011 13:48:16 +0000 (14:48 +0100)
Temporary modification to prevent valgrind.h from breaking compilation
with gcc 4.6.  When this problem is fixed upstream, a new and
unmodified copy of valgrind.h should be imported.

Signed-off-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/include/valgrind/valgrind.h

index 0f5b376624533ac26529d1942ef6df2ffa8f698d..d72754b052bbfe5c0835b977ae3d2f9066671b11 100644 (file)
@@ -4407,7 +4407,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
    Ignored if addr == 0.
 */
 #define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed)    \
-   {unsigned int _qzz_res;                                        \
+   {unsigned int __unused _qzz_res;                               \
     VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                       \
                                VG_USERREQ__MALLOCLIKE_BLOCK,      \
                                addr, sizeB, rzB, is_zeroed, 0);   \
@@ -4417,7 +4417,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
    Ignored if addr == 0.
 */
 #define VALGRIND_FREELIKE_BLOCK(addr, rzB)                        \
-   {unsigned int _qzz_res;                                        \
+   {unsigned int __unused _qzz_res;                               \
     VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                       \
                                VG_USERREQ__FREELIKE_BLOCK,        \
                                addr, rzB, 0, 0, 0);               \