Józef Kucia : tests: Fix clang warning.
Module: vkd3d Branch: master Commit: 4ee7b3428daacd32d75def8d780970a38d0ce93c URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=4ee7b3428daacd32d75def8d... Author: Józef Kucia <jkucia(a)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(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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(); }
participants (1)
-
Alexandre Julliard