diff --git a/vnrhook/main.cc b/vnrhook/main.cc index dd204e7..6985c78 100644 --- a/vnrhook/main.cc +++ b/vnrhook/main.cc @@ -23,7 +23,7 @@ int currentHook = 0, userhookCount = 0; DWORD trigger = 0; HANDLE hmMutex; -BOOL WINAPI DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID unused) +BOOL WINAPI DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID) { switch (fdwReason) { diff --git a/vnrhook/pipe.cc b/vnrhook/pipe.cc index 1321420..c52e6b6 100644 --- a/vnrhook/pipe.cc +++ b/vnrhook/pipe.cc @@ -21,7 +21,7 @@ DWORD DUMMY[100]; void CreatePipe() { - CreateThread(nullptr, 0, [](LPVOID unused) + CreateThread(nullptr, 0, [](LPVOID) { enum { STANDARD_WAIT = 50 }; while (::running)