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/test-vmstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test-vmstate.c') diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c index a462335c4b..d72c64c90b 100644 --- a/tests/test-vmstate.c +++ b/tests/test-vmstate.c @@ -29,8 +29,8 @@ #include "migration/vmstate.h" #include "block/coroutine.h" -char temp_file[] = "/tmp/vmst.test.XXXXXX"; -int temp_fd; +static char temp_file[] = "/tmp/vmst.test.XXXXXX"; +static int temp_fd; /* Fake yield_until_fd_readable() implementation so we don't have to pull the * coroutine code as dependency. -- cgit v1.2.3