qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] darwin-user: Remove two unused variables


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH] darwin-user: Remove two unused variables
Date: Fri, 22 Jul 2011 22:48:50 +0200

Hi Stefan W.,

Am 20.07.2011 um 21:40 schrieb Stefan Weil:

cppcheck report:

darwin-user/signal.c:322: style: Unused variable: i
darwin-user/signal.c:322: style:
Variable 'err' is assigned a value that is never used

Does this really bug you? I'm a bit skeptical towards trying to fix warnings in code that doesn't compile either way... (or does it by now?)

Andreas


Signed-off-by: Stefan Weil <address@hidden>
---
darwin-user/signal.c |    1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/darwin-user/signal.c b/darwin-user/signal.c
index e2adca3..c530227 100644
--- a/darwin-user/signal.c
+++ b/darwin-user/signal.c
@@ -319,7 +319,6 @@ static void setup_frame(int sig, struct emulated_sigaction *ka,
                        void *set, CPUState *env)
{
        void *frame;
-       int i, err = 0;

    fprintf(stderr, "setup_frame %d\n", sig);
        frame = get_sigframe(ka, env, sizeof(*frame));
--
1.7.2.5






reply via email to

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