From bc4e9c7bcfd7d7b3f62b23e583ef216a05975e80 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 19 Apr 2018 11:59:12 +0200 Subject: Fix compilation warnings for tests Cleanup CMakeList a bit as well. Fixes #97 Signed-off-by: Szczepan Zalega --- unittest/test_C_API.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittest/test_C_API.cpp') diff --git a/unittest/test_C_API.cpp b/unittest/test_C_API.cpp index 2d83ef4..acfadd2 100644 --- a/unittest/test_C_API.cpp +++ b/unittest/test_C_API.cpp @@ -74,7 +74,7 @@ TEST_CASE("multiple devices with ID", "[BASIC]") { int t; string = strndup(s, 4096); - free ( (void*) s); + free (static_cast(const_cast(s))); while ((token = strsep(&string, ";")) != nullptr){ if (strnlen(token, 4096) < 3) continue; -- cgit v1.2.1