aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:35:52 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:35:52 +0000
commit9678d9501bc5f2e6e06170013dec8667057c3b62 (patch)
tree98a3d703b5db9b598a639fa672bbe159a85b07c4 /tcg/tcg.c
parentd4c4e6fdc7f5077fba3446f6e650eb94d07a0be5 (diff)
downloadqemu-9678d9501bc5f2e6e06170013dec8667057c3b62.zip
qemu-9678d9501bc5f2e6e06170013dec8667057c3b62.tar.gz
qemu-9678d9501bc5f2e6e06170013dec8667057c3b62.tar.bz2
Remove dead assignments in various common files, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 54f7fa9..beceff0 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -550,14 +550,18 @@ void tcg_register_helper(void *func, const char *name)
void tcg_gen_callN(TCGContext *s, TCGv_ptr func, unsigned int flags,
int sizemask, TCGArg ret, int nargs, TCGArg *args)
{
+#ifdef TCG_TARGET_I386
int call_type;
+#endif
int i;
int real_args;
int nb_rets;
TCGArg *nparam;
*gen_opc_ptr++ = INDEX_op_call;
nparam = gen_opparam_ptr++;
+#ifdef TCG_TARGET_I386
call_type = (flags & TCG_CALL_TYPE_MASK);
+#endif
if (ret != TCG_CALL_DUMMY_ARG) {
#if TCG_TARGET_REG_BITS < 64
if (sizemask & 1) {