aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-11-03 10:58:58 +0100
committerSimon Rozman <simon@rozman.si>2020-11-03 10:58:58 +0100
commit63b99bc2b4ef15693d7f91cc5f26b1705f826e4a (patch)
tree196da2b3b7751fe795fd1516884727f8d9aee8df /api
parentapi: prevent double SetupDiDestroyDriverInfoList calls on error (diff)
downloadwintun-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>
Diffstat (limited to 'api')
-rw-r--r--api/rundll32.c14
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());