diff options
author | Peter Stuge <peter@stuge.se> | 2010-02-12 21:28:15 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2010-02-12 21:28:15 +0000 |
commit | 01708ca504e02450cf4c504e808534177d79d56b (patch) | |
tree | c884e9c6d9ce7b699c67596ba0f8ebf715dc045a /util | |
parent | 7ae11632ed03575d5d2b2d97cd0da5e8a4e4c3a8 (diff) |
romcc: Fix a few (harmless) warnings
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5123 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r-- | util/romcc/romcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index ff11058da4..bac0cf1d14 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -10783,7 +10783,7 @@ static struct triple *string_constant(struct compile_state *state) error(state, 0, "negative string constant length"); } /* ignore empty string tokens */ - if (strcmp("\"", str) == 0) + if ('"' == *str && 0 == str[1]) continue; end = str + str_len; ptr = buf; @@ -21110,7 +21110,7 @@ static void scc_transform(struct compile_state *state) if (state->compiler->debug & DEBUG_SCC_TRANSFORM) { fprintf(state->errout, "sedge: %5ld (%5d -> %5d)\n", - sedge - scc.ssa_edges, + (unsigned long)sedge - (unsigned long)scc.ssa_edges, sedge->src->def->id, sedge->dst->def->id); } |