mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 12:38:04 +02:00
_XkbCheckPendingRefresh: add do ... while (0) to avoid -Wextra-semi-stmt
Clears 6 warnings from clang of the form:
XKBBind.c:74:48: warning: empty expression statement has no effect;
remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
_XkbCheckPendingRefresh(dpy, dpy->xkb_info);
^
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
563ddd4ff5
commit
68e6caad8f
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ typedef struct _XkbInfoRec {
|
|||
(((d)->flags&XlibDisplayNoXkb) || \
|
||||
((!(d)->xkb_info || (!(d)->xkb_info->desc)) && !_XkbLoadDpy(d)))
|
||||
|
||||
#define _XkbCheckPendingRefresh(d,xi) { \
|
||||
#define _XkbCheckPendingRefresh(d,xi) do { \
|
||||
if ((xi)->flags&XkbXlibNewKeyboard) \
|
||||
_XkbReloadDpy((d)); \
|
||||
else if ((xi)->flags&XkbMapPending) { \
|
||||
|
|
@ -95,7 +95,7 @@ typedef struct _XkbInfoRec {
|
|||
UnlockDisplay((d)); \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
} while (0)
|
||||
|
||||
#define _XkbNeedModmap(i) ((!(i)->desc->map)||(!(i)->desc->map->modmap))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue