Fixes Clang warning: ``` warning: default initialization of an object of type 'const char[1]' leaves the object uninitialized [-Wdefault-const-init-var-unsafe] ```
From: Jacek Caban jacek@codeweavers.com
Fixes Clang warning: warning: default initialization of an object of type 'const char[1]' leaves the object uninitialized [-Wdefault-const-init-var-unsafe] --- dlls/ntdll/tests/threadpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/threadpool.c b/dlls/ntdll/tests/threadpool.c index cea06fed791..f330cf0671e 100644 --- a/dlls/ntdll/tests/threadpool.c +++ b/dlls/ntdll/tests/threadpool.c @@ -2041,8 +2041,8 @@ static void test_tp_io(void) OVERLAPPED ovl = {}, ovl2 = {}; HANDLE client, server, thread; struct io_cb_ctx userdata; + const char out[1] = ""; char in[1], in2[1]; - const char out[1]; NTSTATUS status; DWORD ret_size; TP_POOL *pool; @@ -2261,8 +2261,8 @@ static void test_kernel32_tp_io(void) OVERLAPPED ovl = {}, ovl2 = {}; HANDLE client, server, thread; struct io_cb_ctx userdata; + const char out[1] = ""; char in[1], in2[1]; - const char out[1]; NTSTATUS status; DWORD ret_size; TP_POOL *pool;