summaryrefslogtreecommitdiff
path: root/globals.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-10 14:48:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-10 14:59:24 -0800
commit0b9c0acd1c871eaf301ad1119493043ef632a996 (patch)
tree1dade59fd20ee36b660dd44f0dfb32e136864f97 /globals.h
parenta545f985ac404a771424d08e5ced63e63601c9f5 (diff)
ScrollByL: move from XtOffset to XtOffsetOf
Clears 13 warnings from clang 13 of the form: ScrollByL.c:67:6: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction] CoreOffset(width), XtRImmediate, (caddr_t) 500}, ^~~~~~~~~~~~~~~~~ ScrollByL.c:63:27: note: expanded from macro 'CoreOffset' #define CoreOffset(field) XtOffset(ScrollByLineWidget, core.field) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xman/-/merge_requests/13>
Diffstat (limited to 'globals.h')
0 files changed, 0 insertions, 0 deletions