From a47cb9bd10322ea19d77106a534d7a59491e0a55 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 25 Nov 2025 05:02:00 -0700 Subject: [PATCH] Revert "win32/perllib.c: Omit unused formal parameter name" This reverts commit 6fb21d69a83e1c194e85e936ab62dea5c142a51d and changes to use PERL_UNUSED_ARG to silence the compiler warning that commit was intended to silence Fixes #23952. --- win32/perllib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win32/perllib.c b/win32/perllib.c index 15cef6ebb731..eb330f4f8cf0 100644 --- a/win32/perllib.c +++ b/win32/perllib.c @@ -261,8 +261,10 @@ EXTERN_C /* GCC in C++ mode mangles the name, otherwise */ BOOL APIENTRY DllMain(HINSTANCE hModule, /* DLL module handle */ DWORD fdwReason, /* reason called */ - LPVOID) /* reserved */ + LPVOID lpvReserved) /* reserved */ { + PERL_UNUSED_ARG(lpvReserved); + switch (fdwReason) { /* The DLL is attaching to a process due to process * initialization or a call to LoadLibrary.