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)
{

View File

@@ -67,10 +67,10 @@ static unsigned char MD5PADDING[64] = {
};
/* F, G, H and I are basic MD5 functions */
#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
#define F(x, y, z) (((x) & (y)) | ((~(x)) & (z)))
#define G(x, y, z) (((x) & (z)) | ((y) & (~(z))))
#define H(x, y, z) ((x) ^ (y) ^ (z))
#define I(x, y, z) ((y) ^ ((x) | (~z)))
#define I(x, y, z) ((y) ^ ((x) | (~(z))))
/* ROTATE_LEFT rotates x left n bits */
#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32 - (n))))