From: Matthias Braun Date: Sun, 2 Aug 2009 18:09:24 +0000 (+0000) Subject: fix warning and compilation error in optimized mode X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=41c2717f1830bad40a586be3f1ed5379834bd935;p=libfirm fix warning and compilation error in optimized mode [r26311] --- diff --git a/ir/opt/opt_ldst.c b/ir/opt/opt_ldst.c index a20597bad..f9e03d9cc 100644 --- a/ir/opt/opt_ldst.c +++ b/ir/opt/opt_ldst.c @@ -196,8 +196,13 @@ static void dump_curr(block_t *bl, const char *s) { } /* dump_curr */ #else -#define dump_block_list() -#define dump_curr(bl, s) +static void dump_block_list(ldst_env *env) { + (void) env; +} +static void dump_curr(block_t *bl, const char *s) { + (void) bl; + (void) s; +} #endif /* DEBUG_libfirm */ /** Get the block entry for a block node */ @@ -1932,7 +1937,7 @@ static int insert_Load(block_t *bl) { block_t *pred_bl = get_block_entry(pred); int need_phi = 0; memop_t *first = NULL; - ir_mode *mode; + ir_mode *mode = NULL; for (i = 0; i < n; ++i) { memop_t *mop;