xauth warning: WRITES macro
Thomas Klausner
wiz at NetBSD.org
Fri Apr 4 05:35:50 PDT 2014
Hi!
clang doesn't like the WRITES macro xauth uses:
process.c:867:3: warning: if statement has empty body [-Wempty-body]
WRITES(STDERR_FILENO, "\n");
^
process.c:641:57: note: expanded from macro 'WRITES'
#define WRITES(fd, S) {if(write((fd), (S), strlen((S))));}
^
process.c:867:3: note: put the semicolon on a separate line to silence this warning
process.c:641:57: note: expanded from macro 'WRITES'
#define WRITES(fd, S) {if(write((fd), (S), strlen((S))));}
Why is there an empty if, anyway?
Thomas
More information about the xorg-devel
mailing list