qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] ppc: remove a write-only variable


From: Alexander Graf
Subject: [Qemu-devel] Re: [PATCH] ppc: remove a write-only variable
Date: Sat, 9 Apr 2011 17:28:06 +0200




Am 09.04.2011 um 16:56 schrieb Blue Swirl <address@hidden>:

> Remove a write-only variable, spotted by GCC 4.6.0:
> /src/qemu/hw/ppc.c: In function 'power7_set_irq':
> /src/qemu/hw/ppc.c:255:9: error: variable 'cur_level' set but not used
> [-Werror=unused-but-set-variable]
> 
> Signed-off-by: Blue Swirl <address@hidden>
> ---
> hw/ppc.c |    2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/ppc.c b/hw/ppc.c
> index dabb816..1873328 100644
> --- a/hw/ppc.c
> +++ b/hw/ppc.c
> @@ -252,11 +252,9 @@ void ppc970_irq_init (CPUState *env)
> static void power7_set_irq (void *opaque, int pin, int level)
> {
>     CPUState *env = opaque;
> -    int cur_level;
> 
>     LOG_IRQ("%s: env %p pin %d level %d\n", __func__,
>                 env, pin, level);
> -    cur_level = (env->irq_input_state >> pin) & 1;

David, Ben?


Alex

> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]