diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-12 13:05:24 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-12 13:05:24 -0800 |
commit | d9ba30a6f56b2bb7e6f1b125a3d2eaa871c96eba (patch) | |
tree | 0ee920aa03de51b2b2d525abfb18492eeaf15c8a /grid.h | |
parent | 0be214afe5eeddc6d5e6cdcae9b7242d4e11b3cd (diff) |
Handle -Wextra-semi-stmt warnings from clang
Use do {...} while (0) idiom for pre-processor macros that define
code blocks so that trailing semi-colons don't appear to be extraneous
grid.c:305:38: warning: empty expression statement has no effect;
remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
CI_GET_CHAR_INFO_1D (fs, ch, cs);
^
grid.c:311:40: warning: empty expression statement has no effect;
remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
CI_GET_CHAR_INFO_2D (fs, r, c, cs);
^
grid.c:488:46: warning: empty expression statement has no effect;
remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
donestr (XftColor, xftColor, XtRXftColor);
^
grid.c:546:42: warning: empty expression statement has no effect;
remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
donestr (XftFont *, font, XtRXftFont);
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'grid.h')
0 files changed, 0 insertions, 0 deletions