mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2025-12-25 21:10:06 +01:00
OneDataCard32: add do ... while (0) to avoid -Wextra-semi-stmt warnings
Clears 13 warnings from clang of the form:
Backgnd.c:44:72: warning: empty expression statement has no effect;
remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
OneDataCard32 (dpy, NEXTPTR(req,xChangeWindowAttributesReq), pixel);
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/272>
This commit is contained in:
parent
68e6caad8f
commit
41c4aa408c
1 changed files with 1 additions and 1 deletions
|
|
@ -765,7 +765,7 @@ extern void _XRead32(
|
|||
|
||||
/* srcvar must be a variable for large architecture version */
|
||||
#define OneDataCard32(dpy,dstaddr,srcvar) \
|
||||
{ *(CARD32 *)(dstaddr) = (srcvar); }
|
||||
do { *(CARD32 *)(dstaddr) = (srcvar); } while (0)
|
||||
|
||||
|
||||
typedef struct _XInternalAsync {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue