Cleanup: resolve some unreferenced parameter warnings in MSVC
When the warning level is set to 4, some unreferenced parameter warnings can appear This commit resolves some of those warnings.
This commit is contained in:
committed by
Germano Cavalcante
parent
da65b21e2e
commit
7fcb262dfd
@@ -55,6 +55,11 @@ BOOL LaunchedFromSteam()
|
||||
|
||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
||||
{
|
||||
/* Silence unreferenced formal parameter warning. */
|
||||
(void)hInstance;
|
||||
(void)hPrevInstance;
|
||||
(void)nCmdShow;
|
||||
|
||||
STARTUPINFO siStartInfo = {0};
|
||||
PROCESS_INFORMATION procInfo;
|
||||
wchar_t path[MAX_PATH];
|
||||
|
||||
@@ -239,12 +239,12 @@ void *gmp_alloc(size_t size)
|
||||
{
|
||||
return scalable_malloc(size);
|
||||
}
|
||||
void *gmp_realloc(void *ptr, size_t old_size, size_t new_size)
|
||||
void *gmp_realloc(void *ptr, size_t UNUSED(old_size), size_t new_size)
|
||||
{
|
||||
return scalable_realloc(ptr, new_size);
|
||||
}
|
||||
|
||||
void gmp_free(void *ptr, size_t size)
|
||||
void gmp_free(void *ptr, size_t UNUSED(size))
|
||||
{
|
||||
scalable_free(ptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user