summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorThomas Miletich2011-03-28 14:43:31 +0200
committerMichael Brown2011-03-28 15:48:16 +0200
commit914dc6bfa987ec92feca039b1db1533aa473b2f1 (patch)
treefd1e710b3241d5b65b659249a35e8d771e2b3025 /src/arch
parent[forcedeth] Avoid unused-but-set variable warning in gcc 4.6 (diff)
downloadipxe-914dc6bfa987ec92feca039b1db1533aa473b2f1.tar.gz
ipxe-914dc6bfa987ec92feca039b1db1533aa473b2f1.tar.xz
ipxe-914dc6bfa987ec92feca039b1db1533aa473b2f1.zip
[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>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/include/valgrind/valgrind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/include/valgrind/valgrind.h b/src/arch/x86/include/valgrind/valgrind.h
index 0f5b3766..d72754b0 100644
--- a/src/arch/x86/include/valgrind/valgrind.h
+++ b/src/arch/x86/include/valgrind/valgrind.h
@@ -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); \