From 63b99bc2b4ef15693d7f91cc5f26b1705f826e4a Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 3 Nov 2020 10:58:58 +0100 Subject: [PATCH] api: bulk-disable unreferenced param warning where it nags the most Signed-off-by: Simon Rozman --- api/rundll32.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/api/rundll32.c b/api/rundll32.c index 8bab711..e41c2f1 100644 --- a/api/rundll32.c +++ b/api/rundll32.c @@ -77,13 +77,11 @@ Done(void) LocalFree(Argv); } +#pragma warning(disable: 4100) /* unreferenced formal parameter */ + VOID __stdcall CreateAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) { # pragma EXPORT - UNREFERENCED_PARAMETER(hwnd); - UNREFERENCED_PARAMETER(hinst); - UNREFERENCED_PARAMETER(lpszCmdLine); - UNREFERENCED_PARAMETER(nCmdShow); Init(); if (Argc < 4) @@ -116,10 +114,6 @@ cleanup: VOID __stdcall DeleteAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) { # pragma EXPORT - UNREFERENCED_PARAMETER(hwnd); - UNREFERENCED_PARAMETER(hinst); - UNREFERENCED_PARAMETER(lpszCmdLine); - UNREFERENCED_PARAMETER(nCmdShow); Init(); if (Argc < 3) @@ -140,10 +134,6 @@ cleanup: VOID __stdcall DeleteDriver(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) { # pragma EXPORT - UNREFERENCED_PARAMETER(hwnd); - UNREFERENCED_PARAMETER(hinst); - UNREFERENCED_PARAMETER(lpszCmdLine); - UNREFERENCED_PARAMETER(nCmdShow); Init(); WriteFormatted(STD_OUTPUT_HANDLE, L"%1!X!", WintunDeleteDriver());