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 /inline.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 'inline.c')
-rw-r--r--inline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inline.c b/inline.c
index c93f1b1..693c951 100644
--- a/inline.c
+++ b/inline.c
@@ -258,13 +258,13 @@ static struct expression_list *copy_asm_constraints(struct expression_list *in)
return out;
}
-void set_replace(struct symbol *old, struct symbol *new)
+static void set_replace(struct symbol *old, struct symbol *new)
{
new->replace = old;
old->replace = new;
}
-void unset_replace(struct symbol *sym)
+static void unset_replace(struct symbol *sym)
{
struct symbol *r = sym->replace;
if (!r) {