diff options
author | Simon Rozman <simon@rozman.si> | 2020-11-03 10:58:58 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-03 10:58:58 +0100 |
commit | 63b99bc2b4ef15693d7f91cc5f26b1705f826e4a (patch) | |
tree | 196da2b3b7751fe795fd1516884727f8d9aee8df | |
parent | api: prevent double SetupDiDestroyDriverInfoList calls on error (diff) | |
download | wintun-63b99bc2b4ef15693d7f91cc5f26b1705f826e4a.tar.xz wintun-63b99bc2b4ef15693d7f91cc5f26b1705f826e4a.zip |
api: bulk-disable unreferenced param warning where it nags the most
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | api/rundll32.c | 14 |
1 files 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()); |