Skip to content

Commit

Permalink
Suppress unused param warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Mar 19, 2024
1 parent 171fd35 commit ae87fab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/os/os.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <windows.h>
#include <wininet.h> /* MinGW needs it */
#include <shlobj.h>
#define UNUSED(...) (void)(__VA_ARGS__)
#endif

static const char* getvncdir(bool userDir, const char *xdg_env, const char *xdg_def)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ae87fab

Please sign in to comment.