aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2005-04-02 10:30:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:31 -0700
commitf765413f020fd2c97c22716320dc96b33cda7c43 (patch)
treebe5c71bd9cb3a12d52d2a97147418c175b5cd280 /show-parse.c
parentGive function name in non-ANSI declaration warning. (diff)
downloadsparse-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.c4
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);