[PATCH vkd3d 5/8] tests: Fix clang warning.
Józef Kucia
joseph.kucia at gmail.com
Wed Jan 17 05:48:12 CST 2018
From: Józef Kucia <jkucia at codeweavers.com>
include/private/vkd3d_test.h:276:22: warning: format string is not a string literal (potentially insecure)
[-Wformat-security]
vkd3d_test_debug(name);
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
include/private/vkd3d_test.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/private/vkd3d_test.h b/include/private/vkd3d_test.h
index 888436ab3e8b..8e657ac02c49 100644
--- a/include/private/vkd3d_test.h
+++ b/include/private/vkd3d_test.h
@@ -273,7 +273,7 @@ typedef void (*vkd3d_test_pfn)(void);
static inline void vkd3d_run_test(const char *name, vkd3d_test_pfn test_pfn)
{
- vkd3d_test_debug(name);
+ vkd3d_test_debug("%s", name);
test_pfn();
}
--
2.13.6
More information about the wine-devel
mailing list