From 82335b0ab91db7965cd25f1a7e1666f27f9f47cd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 20 Jan 2016 12:56:08 +1000 Subject: [PATCH] test: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit litest-selftest.c: In function ‘litest_ptr_eq_notrigger’: litest-selftest.c:172:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion] int c = NULL; ^ litest-selftest.c:173:10: warning: initialization makes integer from pointer without a cast [-Wint-conversion] int d = NULL; ^ Signed-off-by: Peter Hutterer --- test/litest-selftest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/litest-selftest.c b/test/litest-selftest.c index 5016514d..47d5ef13 100644 --- a/test/litest-selftest.c +++ b/test/litest-selftest.c @@ -169,8 +169,8 @@ START_TEST(litest_ptr_eq_notrigger) int v = 10; int *a = &v; int *b = &v; - int c = NULL; - int d = NULL; + int *c = NULL; + int *d = NULL; litest_assert_ptr_eq(a, b); litest_assert_ptr_eq(c, d);