diff options
| author | Blue Swirl <blauwirbel@gmail.com> | 2010-12-19 10:43:09 +0000 |
|---|---|---|
| committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-19 10:43:09 +0000 |
| commit | cdfe17df88b335269ddabc7ade7a6148a1a20f0d (patch) | |
| tree | c0ce20ad4aa3435b5c8d10d0adaae5525ff15c93 /hw/qdev.c | |
| parent | 6a0ee36a47f5b0d090316fe10ceada83136338da (diff) | |
| download | focaccia-qemu-cdfe17df88b335269ddabc7ade7a6148a1a20f0d.tar.gz focaccia-qemu-cdfe17df88b335269ddabc7ade7a6148a1a20f0d.zip | |
ahci: delete write-only variables (v2)
Avoid these warnings with GCC 4.6.0: /src/qemu/hw/ide/ahci.c: In function 'ahci_reset_port': /src/qemu/hw/ide/ahci.c:810:14: error: variable 'tfd' set but not used [-Werror=unused-but-set-variable] /src/qemu/hw/ide/ahci.c: In function 'handle_cmd': /src/qemu/hw/ide/ahci.c:1103:19: error: variable 'pr' set but not used [-Werror=unused-but-set-variable] In the tfd variable case, fix the logic also. CC: Alexander Graf <agraf@suse.de> CC: Kevin Wolf <kwolf@redhat.com> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/qdev.c')
0 files changed, 0 insertions, 0 deletions