From ae14ef54265ee30274c622c961e48f88f7bdbaf7 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Tue, 26 May 2020 20:16:35 +0200 Subject: [PATCH] riscv64: Fix printf warning now that tcc_error also checks arguments. --- riscv64-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv64-gen.c b/riscv64-gen.c index 97ca55b..5a731e6 100644 --- a/riscv64-gen.c +++ b/riscv64-gen.c @@ -158,7 +158,7 @@ static int load_symofs(int r, SValue *sv, int forstore) sv->c.i = 0; } else { if (((unsigned)fc + (1 << 11)) >> 12) - tcc_error("unimp: large addend for global address (0x%llx)", sv->c.i); + tcc_error("unimp: large addend for global address (0x%llx)", (long long)sv->c.i); greloca(cur_text_section, sv->sym, ind, R_RISCV_GOT_HI20, 0); doload = 1;