=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: tests: Fix clang warning.
Alexandre Julliard
julliard at winehq.org
Thu Jan 18 09:26:22 CST 2018
Module: vkd3d
Branch: master
Commit: 4ee7b3428daacd32d75def8d780970a38d0ce93c
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=4ee7b3428daacd32d75def8d780970a38d0ce93c
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Wed Jan 17 12:48:12 2018 +0100
tests: Fix clang warning.
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>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 888436a..8e657ac 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();
}
More information about the wine-cvs
mailing list