Commit 3e9a474e3d7cca635f821a14a6d8d38405243892

Authored by aurel32
1 parent c241f1f4

tcg: kill two warnings

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6029 c046a42c-6fe2-441c-8c8c-71466251a162
tcg/i386/tcg-target.c
@@ -285,7 +285,7 @@ static inline void tgen_arithi(TCGContext *s, int c, int r0, int32_t val) @@ -285,7 +285,7 @@ static inline void tgen_arithi(TCGContext *s, int c, int r0, int32_t val)
285 } 285 }
286 } 286 }
287 287
288 -void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) 288 +static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
289 { 289 {
290 if (val != 0) 290 if (val != 0)
291 tgen_arithi(s, ARITH_ADD, reg, val); 291 tgen_arithi(s, ARITH_ADD, reg, val);
tcg/tcg.c
@@ -886,7 +886,7 @@ void tcg_dump_ops(TCGContext *s, FILE *outfile) @@ -886,7 +886,7 @@ void tcg_dump_ops(TCGContext *s, FILE *outfile)
886 val = args[1]; 886 val = args[1];
887 th = tcg_find_helper(s, val); 887 th = tcg_find_helper(s, val);
888 if (th) { 888 if (th) {
889 - fprintf(outfile, th->name); 889 + fprintf(outfile, "%s", th->name);
890 } else { 890 } else {
891 if (c == INDEX_op_movi_i32) 891 if (c == INDEX_op_movi_i32)
892 fprintf(outfile, "0x%x", (uint32_t)val); 892 fprintf(outfile, "0x%x", (uint32_t)val);