libXaw3d: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Nov 16 21:01:02 UTC 2024
src/List.c | 4 ++--
src/TextPop.c | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 9a7a082d8b60f5a00d8b3d2f060346d8ccbe2de7
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Nov 10 13:38:42 2024 -0800
TextPop: do arithmetic before casting to pointer, not after
Clears warning from clang 13.0.1:
TextPop.c:646:63: warning: arithmetic on a null pointer treated as a cast
from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic]
XtSetArg(args[num_args], XtNradioData, (XPointer) XawsdLeft + R_OFFSET);
~~~~~~~~~~~~~~~~~~~~ ^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxaw3d/-/merge_requests/17>
commit 95a949548c78b24c633d5717cf57362de1f2f0fa
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Sun Nov 10 13:34:54 2024 -0800
List: switch from XtOffset to XtOffsetOf
Mirrors libXaw fix inherited from XFree86:
3410. Fix the last Xaw user of XtOffset (#3520, Keith Packard).
Fixes 16 -Wnull-pointer-subtraction warnings from clang 13 of the form:
List.c:81:2: warning: performing pointer subtraction with a null pointer
has undefined behavior [-Wnull-pointer-subtraction]
offset(list.foreground), XtRString, XtDefaultForeground},
^~~~~~~~~~~~~~~~~~~~~~~
List.c:77:23: note: expanded from macro 'offset'
#define offset(field) XtOffset(ListWidget, field)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxaw3d/-/merge_requests/17>
commit 54ca9e90e1641f1538409fb41b36325b8cb74f1d
Author: Thomas E. Dickey <dickey at his.com>
Date: Sun Sep 15 18:35:54 2024 +0000
build-fix
More information about the xorg-commit
mailing list