Browse Source

[linux] Avoid unused-but-set variable warning in gcc 4.6

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>
tags/v1.20.1
Thomas Miletich 13 years ago
parent
commit
914dc6bfa9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/arch/x86/include/valgrind/valgrind.h

+ 2
- 2
src/arch/x86/include/valgrind/valgrind.h View File

@@ -4407,7 +4407,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
4407 4407
    Ignored if addr == 0.
4408 4408
 */
4409 4409
 #define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed)    \
4410
-   {unsigned int _qzz_res;                                        \
4410
+   {unsigned int __unused _qzz_res;                               \
4411 4411
     VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                       \
4412 4412
                                VG_USERREQ__MALLOCLIKE_BLOCK,      \
4413 4413
                                addr, sizeB, rzB, is_zeroed, 0);   \
@@ -4417,7 +4417,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
4417 4417
    Ignored if addr == 0.
4418 4418
 */
4419 4419
 #define VALGRIND_FREELIKE_BLOCK(addr, rzB)                        \
4420
-   {unsigned int _qzz_res;                                        \
4420
+   {unsigned int __unused _qzz_res;                               \
4421 4421
     VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                       \
4422 4422
                                VG_USERREQ__FREELIKE_BLOCK,        \
4423 4423
                                addr, rzB, 0, 0, 0);               \

Loading…
Cancel
Save