8019382: PPC64: Fix bytecodeInterpreter to compile with '-Wunused-value'

Cast the offending expressions to (void)

Reviewed-by: kvn, coleenp
This commit is contained in:
Volker Simonis 2013-07-01 14:14:16 -07:00
parent 68c516f654
commit 7936ee54bf

View File

@ -1581,7 +1581,7 @@ run:
#define ARRAY_LOADTO32(T, T2, format, stackRes, extra) \ #define ARRAY_LOADTO32(T, T2, format, stackRes, extra) \
{ \ { \
ARRAY_INTRO(-2); \ ARRAY_INTRO(-2); \
extra; \ (void)extra; \
SET_ ## stackRes(*(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)), \ SET_ ## stackRes(*(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)), \
-2); \ -2); \
UPDATE_PC_AND_TOS_AND_CONTINUE(1, -1); \ UPDATE_PC_AND_TOS_AND_CONTINUE(1, -1); \
@ -1592,7 +1592,7 @@ run:
{ \ { \
ARRAY_INTRO(-2); \ ARRAY_INTRO(-2); \
SET_ ## stackRes(*(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)), -1); \ SET_ ## stackRes(*(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)), -1); \
extra; \ (void)extra; \
UPDATE_PC_AND_CONTINUE(1); \ UPDATE_PC_AND_CONTINUE(1); \
} }
@ -1617,7 +1617,7 @@ run:
#define ARRAY_STOREFROM32(T, T2, format, stackSrc, extra) \ #define ARRAY_STOREFROM32(T, T2, format, stackSrc, extra) \
{ \ { \
ARRAY_INTRO(-3); \ ARRAY_INTRO(-3); \
extra; \ (void)extra; \
*(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)) = stackSrc( -1); \ *(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)) = stackSrc( -1); \
UPDATE_PC_AND_TOS_AND_CONTINUE(1, -3); \ UPDATE_PC_AND_TOS_AND_CONTINUE(1, -3); \
} }
@ -1626,7 +1626,7 @@ run:
#define ARRAY_STOREFROM64(T, T2, stackSrc, extra) \ #define ARRAY_STOREFROM64(T, T2, stackSrc, extra) \
{ \ { \
ARRAY_INTRO(-4); \ ARRAY_INTRO(-4); \
extra; \ (void)extra; \
*(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)) = stackSrc( -1); \ *(T2 *)(((address) arrObj->base(T)) + index * sizeof(T2)) = stackSrc( -1); \
UPDATE_PC_AND_TOS_AND_CONTINUE(1, -4); \ UPDATE_PC_AND_TOS_AND_CONTINUE(1, -4); \
} }