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 | f3f5b867259dcb205b1f4fdd93165dec71e89201 (patch) | |
tree | 447739c9c06dc3faa66263b093fd779c43461c82 /hw | |
parent | ef4760626e88bc3e7a1b46c7370378cbd12d379f (diff) | |
download | qemu-f3f5b867259dcb205b1f4fdd93165dec71e89201.zip qemu-f3f5b867259dcb205b1f4fdd93165dec71e89201.tar.gz qemu-f3f5b867259dcb205b1f4fdd93165dec71e89201.tar.bz2 |
lsi53c895a: avoid a write only variable
Compiling with GCC 4.6.0 20100925 produced a warning:
/src/qemu/hw/lsi53c895a.c: In function 'lsi_do_msgout':
/src/qemu/hw/lsi53c895a.c:848:9: error: variable 'len' set but not used [-Werror=unused-but-set-variable]
Fix by adding a dummy cast so that the variable is not unused for
non-debug case.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/lsi53c895a.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 5eaf69e..f97335e 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -864,6 +864,7 @@ static void lsi_do_msgout(LSIState *s) case 0x01: len = lsi_get_msgbyte(s); msg = lsi_get_msgbyte(s); + (void)len; /* avoid a warning about unused variable*/ DPRINTF("Extended message 0x%x (len %d)\n", msg, len); switch (msg) { case 1: |