]> Git Repo - qemu.git/commit - target-i386/seg_helper.c
i386: avoid a write only variable
authorBlue Swirl <[email protected]>
Wed, 13 Oct 2010 18:38:08 +0000 (18:38 +0000)
committerBlue Swirl <[email protected]>
Wed, 13 Oct 2010 18:43:19 +0000 (18:43 +0000)
commit4581cbcdc3c70fa94c729da7e25c6a152936cfd3
treed4242721ab5f3416183926b892302f62af5caf83
parent2ded6ad761613e01d4690f290771961ba690d17e
i386: avoid a write only variable

Compiling with GCC 4.6.0 20100925 produced warnings:
/src/qemu/target-i386/op_helper.c: In function 'switch_tss':
/src/qemu/target-i386/op_helper.c:283:53: error: variable 'new_trap' set but not used [-Werror=unused-but-set-variable]

Fix by adding a dummy cast so that the variable is not unused. Add also
pointer to docs.

Signed-off-by: Blue Swirl <[email protected]>
target-i386/op_helper.c
This page took 0.023736 seconds and 4 git commands to generate.