From 5a2a91cb0568238726d723b529ecdd5fa5b03782 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 6 Jan 2023 16:24:20 -0800
Subject: [PATCH] Fixed compile warnings with unused parameters
---
include/SDL3/SDL_main_impl.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/SDL3/SDL_main_impl.h b/include/SDL3/SDL_main_impl.h
index 3575ea71c17e..79902bfb81e3 100644
--- a/include/SDL3/SDL_main_impl.h
+++ b/include/SDL3/SDL_main_impl.h
@@ -68,6 +68,8 @@ int wmain(int argc, wchar_t *wargv[], wchar_t *wenvp)
int main(int argc, char *argv[])
#endif
{
+ (void)argc;
+ (void)argv;
return SDL_RunApp(0, NULL, SDL_main, NULL);
}
@@ -80,6 +82,10 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrev, PWSTR szCmdLine, int sw)
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw)
#endif
{
+ (void)hInst;
+ (void)hPrev;
+ (void)szCmdLine;
+ (void)sw;
return SDL_RunApp(0, NULL, SDL_main, NULL);
}