From 748bfb4eee8e699f3d2dd6a95820d1a9e57e4aa6 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 7 Jul 2014 21:03:38 +0200 Subject: tests: Add missing 'static' attributes (fix warnings from smatch) Smatch also complains about 0 used for pointers, so replace those by NULL in test-visitor-serialization.c, too. Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev --- tests/fdc-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/fdc-test.c') diff --git a/tests/fdc-test.c b/tests/fdc-test.c index c8e1e7b..203074c 100644 --- a/tests/fdc-test.c +++ b/tests/fdc-test.c @@ -65,7 +65,7 @@ enum { DSKCHG = 0x80, }; -char test_image[] = "/tmp/qtest.XXXXXX"; +static char test_image[] = "/tmp/qtest.XXXXXX"; #define assert_bit_set(data, mask) g_assert_cmphex((data) & (mask), ==, (mask)) #define assert_bit_clear(data, mask) g_assert_cmphex((data) & (mask), ==, 0) -- cgit v1.1