]> git.proxmox.com Git - qemu.git/commit - target-mips/translate.c
mips: avoid write only variables
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 13 Oct 2010 18:38:08 +0000 (18:38 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 13 Oct 2010 18:43:21 +0000 (18:43 +0000)
commit2abf314dddcfc1792a981ef6ecda343384b2a1a2
treecdce8aa0f718c6e4a226633ea19a18440aa51ead
parent577f25a5eb2b1b3338fe03d31c6e87da5ce29e7c
mips: avoid write only variables

Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:
/src/qemu/target-mips/translate.c: In function 'gen_ld':
/src/qemu/target-mips/translate.c:1039:17: error: variable 'opn' set but not used [-Werror=unused-but-set-variable]

Fix by adding a dummy cast so that the variable is not unused.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-mips/translate.c