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
This commit is contained in:
Peter Stuge 2010-02-12 21:28:15 +00:00
parent 7ae11632ed
commit 01708ca504
1 changed files with 2 additions and 2 deletions

View File

@ -10783,7 +10783,7 @@ static struct triple *string_constant(struct compile_state *state)
error(state, 0, "negative string constant length"); error(state, 0, "negative string constant length");
} }
/* ignore empty string tokens */ /* ignore empty string tokens */
if (strcmp("\"", str) == 0) if ('"' == *str && 0 == str[1])
continue; continue;
end = str + str_len; end = str + str_len;
ptr = buf; ptr = buf;
@ -21110,7 +21110,7 @@ static void scc_transform(struct compile_state *state)
if (state->compiler->debug & DEBUG_SCC_TRANSFORM) { if (state->compiler->debug & DEBUG_SCC_TRANSFORM) {
fprintf(state->errout, "sedge: %5ld (%5d -> %5d)\n", 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->src->def->id,
sedge->dst->def->id); sedge->dst->def->id);
} }