diff options
author | 2005-04-02 10:30:09 -0700 | |
---|---|---|
committer | 2005-04-07 21:06:31 -0700 | |
commit | f765413f020fd2c97c22716320dc96b33cda7c43 (patch) | |
tree | be5c71bd9cb3a12d52d2a97147418c175b5cd280 /show-parse.c | |
parent | Give function name in non-ANSI declaration warning. (diff) | |
download | sparse-f765413f020fd2c97c22716320dc96b33cda7c43.tar.gz sparse-f765413f020fd2c97c22716320dc96b33cda7c43.tar.bz2 sparse-f765413f020fd2c97c22716320dc96b33cda7c43.zip |
[PATCH] static declear
This patch add static declare to make sparse happy of checking itself.
Diffstat (limited to 'show-parse.c')
-rw-r--r-- | show-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/show-parse.c b/show-parse.c index 0a75a09..be5d704 100644 --- a/show-parse.c +++ b/show-parse.c @@ -110,7 +110,7 @@ const char *modifier_string(unsigned long mod) return buffer; } -void show_struct_member(struct symbol *sym) +static void show_struct_member(struct symbol *sym) { printf("\t%s:%d:%ld at offset %ld.%d", show_ident(sym->ident), sym->bit_size, sym->ctype.alignment, sym->offset, sym->bit_offset); printf("\n"); @@ -874,7 +874,7 @@ static int show_string_expr(struct expression *expr) return new; } -int show_label_expr(struct expression *expr) +static int show_label_expr(struct expression *expr) { int new = new_pseudo(); printf("\tmovi.%d\t\tv%d,.L%p\n",bits_in_pointer, new, expr->label_symbol); |