From 6d93d800e7a667967d0dba228ba73d77be0c2960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 11 Apr 2014 10:06:00 +0300 Subject: [PATCH] Make the first C function parameter const void* in c_interface_test This fixes warnings when building with MSVC. --- test/api/c_interface_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api/c_interface_test.c b/test/api/c_interface_test.c index 197da4a6..db02fa2e 100644 --- a/test/api/c_interface_test.c +++ b/test/api/c_interface_test.c @@ -2,7 +2,7 @@ #include // Cast to this function type to ignore other parameters. -typedef int (*Func)(void*); +typedef int (*Func)(const void*); #define CALL(p, m) (((Func)((*p)->m))(p)) // Check if the function return an expected number. #define CHECK(n, p, m) check(n, CALL(p, m), #m)