api: bulk-disable unreferenced param warning where it nags the most
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
aa6e540811
commit
63b99bc2b4
@ -77,13 +77,11 @@ Done(void)
|
|||||||
LocalFree(Argv);
|
LocalFree(Argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning(disable: 4100) /* unreferenced formal parameter */
|
||||||
|
|
||||||
VOID __stdcall CreateAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
|
VOID __stdcall CreateAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
|
||||||
{
|
{
|
||||||
# pragma EXPORT
|
# pragma EXPORT
|
||||||
UNREFERENCED_PARAMETER(hwnd);
|
|
||||||
UNREFERENCED_PARAMETER(hinst);
|
|
||||||
UNREFERENCED_PARAMETER(lpszCmdLine);
|
|
||||||
UNREFERENCED_PARAMETER(nCmdShow);
|
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
if (Argc < 4)
|
if (Argc < 4)
|
||||||
@ -116,10 +114,6 @@ cleanup:
|
|||||||
VOID __stdcall DeleteAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
|
VOID __stdcall DeleteAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
|
||||||
{
|
{
|
||||||
# pragma EXPORT
|
# pragma EXPORT
|
||||||
UNREFERENCED_PARAMETER(hwnd);
|
|
||||||
UNREFERENCED_PARAMETER(hinst);
|
|
||||||
UNREFERENCED_PARAMETER(lpszCmdLine);
|
|
||||||
UNREFERENCED_PARAMETER(nCmdShow);
|
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
if (Argc < 3)
|
if (Argc < 3)
|
||||||
@ -140,10 +134,6 @@ cleanup:
|
|||||||
VOID __stdcall DeleteDriver(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
|
VOID __stdcall DeleteDriver(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
|
||||||
{
|
{
|
||||||
# pragma EXPORT
|
# pragma EXPORT
|
||||||
UNREFERENCED_PARAMETER(hwnd);
|
|
||||||
UNREFERENCED_PARAMETER(hinst);
|
|
||||||
UNREFERENCED_PARAMETER(lpszCmdLine);
|
|
||||||
UNREFERENCED_PARAMETER(nCmdShow);
|
|
||||||
|
|
||||||
Init();
|
Init();
|
||||||
WriteFormatted(STD_OUTPUT_HANDLE, L"%1!X!", WintunDeleteDriver());
|
WriteFormatted(STD_OUTPUT_HANDLE, L"%1!X!", WintunDeleteDriver());
|
||||||
|
Loading…
Reference in New Issue
Block a user