Received: from eggs.gnu.org ([2001:4830:134:3::10]:33759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVCZN-0002xg-76 for qemu-devel@nongnu.org; Tue, 10 Mar 2015 01:19:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVCQ8-00014M-I5 for qemu-devel@nongnu.org; Tue, 10 Mar 2015 01:09:54 -0400 Message-ID: <54FE7C89.2030408@msgid.tls.msk.ru> Date: Tue, 10 Mar 2015 08:09:29 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1425215238-25799-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1425215238-25799-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] disas/cris: Fix warning caused by missing 'static' attribute List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Trivial Cc: "Edgar E. Iglesias" , QEMU Developer 01.03.2015 16:07, Stefan Weil wrote: > Warning from the Sparse static analysis tool: > > disas/cris.c:1218:26: warning: > symbol 'cris_cond15s' was not declared. Should it be static? > > Signed-off-by: Stefan Weil > --- > disas/cris.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/disas/cris.c b/disas/cris.c > index 9dfb4e3..a034dba 100644 > --- a/disas/cris.c > +++ b/disas/cris.c > @@ -1215,7 +1215,7 @@ cris_cc_strings[] = > }; > > /* Different names and semantics for condition 1111 (0xf). */ > -const struct cris_cond15 cris_cond15s[] = > +static const struct cris_cond15 cris_cond15s[] = This is the same patch you sent 07-feb, with Message-Id: <1423258997-30957-2-git-send-email-sw@weilnetz.de>, and the same patch which makes at least clang unhappy: disas/cris.c:1218:33: error: unused variable 'cris_cond15s' [-Werror,-Wunused-const-variable] static const struct cris_cond15 cris_cond15s[] = ^ 1 error generated. I'll drop this patch and remove the unused variable instead. Thanks, /mjt