i386: avoid a write only variable
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:19 +0000 (18:43 +0000)
commit3b5c1a004e79056e5e0f6afa2db0d374ce741c7d
treed4242721ab5f3416183926b892302f62af5caf83
parent87e17291dacc7294dec596be63946698dacd18fb
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 <blauwirbel@gmail.com>
target-i386/op_helper.c