提交 34e69ac4 编写于 作者: S simonis

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

Summary: cast the offending expressions to (void)
Reviewed-by: kvn, coleenp
上级 4343b587
...@@ -1581,7 +1581,7 @@ run: ...@@ -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,8 +1592,8 @@ run: ...@@ -1592,8 +1592,8 @@ 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); \
} }
CASE(_iaload): CASE(_iaload):
...@@ -1617,7 +1617,7 @@ run: ...@@ -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: ...@@ -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); \
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册