From ae87fab3854e5aab6bc0152267407f9f1f38cebf Mon Sep 17 00:00:00 2001 From: 90 Date: Tue, 19 Mar 2024 14:02:51 +0000 Subject: [PATCH] Suppress unused param warnings on Windows --- common/os/os.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/os/os.cxx b/common/os/os.cxx index 52f4cb0e2a..6373b8d6f4 100644 --- a/common/os/os.cxx +++ b/common/os/os.cxx @@ -38,6 +38,7 @@ #include #include /* MinGW needs it */ #include +#define UNUSED(...) (void)(__VA_ARGS__) #endif static const char* getvncdir(bool userDir, const char *xdg_env, const char *xdg_def) @@ -84,6 +85,7 @@ static const char* getvncdir(bool userDir, const char *xdg_env, const char *xdg_ return dir; #else + UNUSED(xdg_def, xdg_env); if (userDir) ret = SHGetSpecialFolderPath(NULL, dir, CSIDL_PROFILE, FALSE); else