diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-10-13 18:38:07 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-13 18:38:07 +0000 |
commit | 8c78881f481401ec3cfbdce2267101cf300cd4b1 (patch) | |
tree | e2c939028fae613d76205f608b139c0224ae0181 /ioport.c | |
parent | 83e3f76c2565a06877dc415ac9f5cf6f1c75614c (diff) | |
download | qemu-8c78881f481401ec3cfbdce2267101cf300cd4b1.zip qemu-8c78881f481401ec3cfbdce2267101cf300cd4b1.tar.gz qemu-8c78881f481401ec3cfbdce2267101cf300cd4b1.tar.bz2 |
cirrus: avoid write only variables
Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:
In file included from /src/qemu/hw/cirrus_vga_rop.h:174:0,
from /src/qemu/hw/cirrus_vga.c:284:
/src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_patternfill_0_8':
/src/qemu/hw/cirrus_vga_rop2.h:48:18: error: variable 'col' set but not used [-Werror=unused-but-set-variable]
/src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_colorexpand_transp_0_8':
/src/qemu/hw/cirrus_vga_rop2.h:104:18: error: variable 'col' set but not used [-Werror=unused-but-set-variable]
Fix the warnings by introducing an inline function, which avoids
exposing write-only variables.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'ioport.c')
0 files changed, 0 insertions, 0 deletions