aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-02-28 11:58:18 -0800
committerJosh Triplett <josh@freedesktop.org>2007-02-28 11:58:18 -0800
commita4abe00d7a45a02a3135b24d5f04747397445f7a (patch)
treeedc5bdf46dceb54c4f76e935c58f3ce78e713282 /validation/foul-bitwise.c
parentDisable liveness "dead" instruction by default. (diff)
downloadsparse-a4abe00d7a45a02a3135b24d5f04747397445f7a.tar.gz
sparse-a4abe00d7a45a02a3135b24d5f04747397445f7a.tar.bz2
sparse-a4abe00d7a45a02a3135b24d5f04747397445f7a.zip
Add static to declarations in test cases, to remove unrelated warnings.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'validation/foul-bitwise.c')
-rw-r--r--validation/foul-bitwise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/validation/foul-bitwise.c b/validation/foul-bitwise.c
index 576790d..ca84be6 100644
--- a/validation/foul-bitwise.c
+++ b/validation/foul-bitwise.c
@@ -1,20 +1,20 @@
typedef unsigned short __attribute__((bitwise))__le16;
-__le16 foo(__le16 a)
+static __le16 foo(__le16 a)
{
return a |= ~a;
}
-int baz(__le16 a)
+static int baz(__le16 a)
{
return ~a == ~a;
}
-int barf(__le16 a)
+static int barf(__le16 a)
{
return a == (a & ~a);
}
-__le16 bar(__le16 a)
+static __le16 bar(__le16 a)
{
return -a;
}