mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-28 20:37:24 +02:00
Fix warnings 'macro argument should be enclosed in parentheses'
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user