Skip to content

Commit

Permalink
disas/sh4: Fix warning caused by missing 'static' attribute
Browse files Browse the repository at this point in the history
Warning from the Sparse static analysis tool:

disas/sh4.c:335:22: warning:
 symbol 'sh_table' was not declared. Should it be static?

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
stweil authored and Michael Tokarev committed Feb 10, 2015
1 parent 8b98ade commit 084cc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disas/sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ typedef struct

#ifdef DEFINE_TABLE

const sh_opcode_info sh_table[] =
static const sh_opcode_info sh_table[] =
{
/* 0111nnnni8*1.... add #<imm>,<REG_N> */{"add",{A_IMM,A_REG_N},{HEX_7,REG_N,IMM0_8}, arch_sh1_up},

Expand Down

0 comments on commit 084cc83

Please sign in to comment.