From d104b51ab18ce4f9ed5c5032af16ef8baad4f8f7 Mon Sep 17 00:00:00 2001 From: Ihor Dutchak Date: Wed, 25 Nov 2026 18:26:06 +0200 Subject: [PATCH] tests: zero-initialize the preparsed data header Initialize the fixed header at its declaration so the MSVC reconstructor test builds with C4815 enabled under /W4 /WX. Assisted-by: Codex:GPT-6 --- windows/test/hid_report_reconstructor_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/test/hid_report_reconstructor_test.c b/windows/test/hid_report_reconstructor_test.c index 3a910bf26..03aea71d0 100644 --- a/windows/test/hid_report_reconstructor_test.c +++ b/windows/test/hid_report_reconstructor_test.c @@ -99,8 +99,7 @@ static hidp_preparsed_data * alloc_preparsed_data_from_file(char* filename) printf(" Usage (page): 0x%hx (0x%hx)\n", usage, usage_page); } - hidp_preparsed_data static_pp_data; - memset(&static_pp_data, 0, sizeof(static_pp_data)); + hidp_preparsed_data static_pp_data = {0}; hidp_preparsed_data *pp_data = &static_pp_data; unsigned int rt_idx;