Skip to content

Commit

Permalink
cleanup warnings
Browse files Browse the repository at this point in the history
In particular `_STRINGIFY' is defined in mingw-w64
internal headers. The underscore-prefixed names are
reserved.

v2:

- Align macro definition
- Use q_unused attribute

Reported by: @skullernet
  • Loading branch information
sthalik authored and Paril committed Dec 10, 2021
1 parent af85ebd commit 0cc9477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inc/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#define CONST_STR_LEN(x) x, x ? sizeof(x) - 1 : 0

#define __STRINGIFY(x) #x
#define STRINGIFY(x) __STRINGIFY(x)
#define STRINGIFY2(x) #x
#define STRINGIFY(x) STRINGIFY2(x)

typedef struct {
const char *name;
Expand Down
2 changes: 1 addition & 1 deletion src/windows/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ void Sys_Init(void)
HMODULE module;
BOOL (WINAPI * pSetProcessDEPPolicy)(DWORD);
#endif
cvar_t *var = NULL;
cvar_t *var q_unused;

// check windows version
vinfo.dwOSVersionInfoSize = sizeof(vinfo);
Expand Down

0 comments on commit 0cc9477

Please sign in to comment.