Skip to content

Commit 242b548

Browse files
committed
hw/xfree86/os-support: explicitly define SYSCALL macro with empty while body
The `SYSCALL` macro can seldom generate a warning in Clang when used immediately before another macro (e.g. `DebugF`). We can explicitly define the empty body to suppress these warnings. Signed-off-by: Spxctre <[email protected]>
1 parent 205088d commit 242b548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/xfree86/os-support/xf86_OSlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ struct pcvtid {
234234
#define MAP_FAILED ((void *)-1)
235235
#endif
236236

237-
#define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
237+
#define SYSCALL(call) while(((call) == -1) && (errno == EINTR)) {}
238238

239239
#include "xf86_OSproc.h"
240240

0 commit comments

Comments
 (0)