qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] tcg/arm: Fix compiler error caused by unused fu


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] tcg/arm: Fix compiler error caused by unused function
Date: Sat, 13 Aug 2011 11:16:15 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110702 Iceowl/1.0b1 Icedove/3.0.11

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: ‘tcg_out_addi’ defined 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<address@hidden>
Signed-off-by: Stefan Weil<address@hidden>
---
  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, TCGType 
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_long val)
  {
      if (val>  0)
          if (val<  0x100)

Ping?



reply via email to

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