Skip to content

Commit

Permalink
Suppress partial warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Dec 7, 2023
1 parent 4fced4b commit 6321096
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ CFLAGS := -O -g \
-ansi -pedantic \
-Wall -Wextra \
-Wno-variadic-macros \
-Wno-maybe-uninitialized
-Wno-maybe-uninitialized \
-Wno-declaration-after-statement

include mk/common.mk
include mk/arm.mk
Expand Down
1 change: 0 additions & 1 deletion src/arm-codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ void code_generate()
ph2_ir = ph2_ir->next) {
int rd = ph2_ir->dest;
int rn = ph2_ir->src0;
int rm = ph2_ir->src1;

switch (ph2_ir->op) {
case OP_load_constant:
Expand Down
1 change: 1 addition & 0 deletions src/cfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -3009,6 +3009,7 @@ basic_block_t *read_body_statement(block_t *parent, basic_block_t *bb)
}

error("Unrecognized statement token");
return NULL;
}

basic_block_t *read_code_block(func_t *func,
Expand Down
7 changes: 3 additions & 4 deletions src/ssa.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,11 @@ int dom_connect(basic_block_t *pred, basic_block_t *succ)
if (succ->dom_prev)
return 0;

int i, found = 0;
int i;
for (i = 0; i < MAX_BB_DOM_SUCC; i++) {
if (pred->dom_next[i] == succ) {
found = 1;
if (pred->dom_next[i] == succ)
return 0;
} else if (!pred->dom_next[i])
if (!pred->dom_next[i])
break;
}

Expand Down

0 comments on commit 6321096

Please sign in to comment.