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@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-01-17 12:48:12 +01:00 committed by Alexandre Julliard
parent 05cb9de9a3
commit 4ee7b3428d
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}