On 18.12.2010, at 21:00, Blue Swirl wrote:

> 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 <ag...@suse.de>
> CC: Kevin Wolf <kw...@redhat.com>
> Signed-off-by: Blue Swirl <blauwir...@gmail.com>

Acked-by: Alexander Graf <ag...@suse.de>


Alex


Reply via email to