From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsAKK-0003Gj-Bg for qemu-devel@nongnu.org; Sat, 13 Aug 2011 05:16:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsAKJ-00059O-CG for qemu-devel@nongnu.org; Sat, 13 Aug 2011 05:16:20 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:41571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsAKJ-00059K-7l for qemu-devel@nongnu.org; Sat, 13 Aug 2011 05:16:19 -0400 Message-ID: <4E4640DF.1080801@mail.berlios.de> Date: Sat, 13 Aug 2011 11:16:15 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1311970049-5472-1-git-send-email-weil@mail.berlios.de> In-Reply-To: <1311970049-5472-1-git-send-email-weil@mail.berlios.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] tcg/arm: Fix compiler error caused by unused function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrzej Zaborowski Cc: QEMU Developers Am 29.07.2011 22:07, schrieb Stefan Weil: > Function tcg_out_addi is obviously unused and causes a compiler > error (tested with cross compilation on x86 Debian Linux): > > tcg/arm/tcg-target.c:1824: error: =E2=80=98tcg_out_addi=E2=80=99 define= d but not used > > Don't remove it because it might be useful in the future, > but declare it inline. This fixes the compiler error and > is similar to other tcg targets. > > Cc: Andrzej Zaborowski > Signed-off-by: Stefan Weil > --- > tcg/arm/tcg-target.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c > index 93eb0f1..c94a354 100644 > --- a/tcg/arm/tcg-target.c > +++ b/tcg/arm/tcg-target.c > @@ -1820,7 +1820,7 @@ static inline void tcg_out_st(TCGContext *s, TCGT= ype type, int arg, > tcg_out_st32(s, COND_AL, arg, arg1, arg2); > } > > -static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) > +static inline void tcg_out_addi(TCGContext *s, int reg, tcg_target_lon= g val) > { > if (val> 0) > if (val< 0x100) > =20 Ping?