diff options
author | Josh Triplett <josh@freedesktop.org> | 2007-02-28 11:58:18 -0800 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2007-02-28 11:58:18 -0800 |
commit | a4abe00d7a45a02a3135b24d5f04747397445f7a (patch) | |
tree | edc5bdf46dceb54c4f76e935c58f3ce78e713282 /validation/foul-bitwise.c | |
parent | Disable liveness "dead" instruction by default. (diff) | |
download | sparse-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.c | 8 |
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; } |