Fix warnings 'macro argument should be enclosed in parentheses'

This commit is contained in:
Sylvain 2022-12-05 15:20:48 +01:00 committed by Sam Lantinga
parent 8cafde5ecc
commit af5bda5ef3
10 changed files with 58 additions and 58 deletions

View file

@ -112,14 +112,14 @@ SDLTest_CommonCreateState(char **argv, Uint32 flags)
return state;
}
#define SEARCHARG(dim) \
while (*dim && *dim != ',') { \
++dim; \
} \
if (!*dim) { \
return -1; \
} \
*dim++ = '\0';
#define SEARCHARG(dim) \
while (*(dim) && *(dim) != ',') { \
++(dim); \
} \
if (!*(dim)) { \
return -1; \
} \
*(dim)++ = '\0';
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
{