diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-11-10 13:38:42 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-11-10 14:16:49 -0800 |
commit | 0d0072e4e5aa22c1980782979b973ca3e711f0a6 (patch) | |
tree | c47de63e293e2a72bb60c8b2ced6e760b5abb456 | |
parent | af1a1d42cb48a129b95b44880a8fa65fda220bcb (diff) |
Clears warning from clang 13.0.1:
TextPop.c:679:64: 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@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/merge_requests/38>
-rw-r--r-- | src/TextPop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TextPop.c b/src/TextPop.c index 499c340..766000c 100644 --- a/src/TextPop.c +++ b/src/TextPop.c @@ -676,7 +676,7 @@ AddSearchChildren(Widget form, String ptr, Widget tw) XtSetArg(args[num_args], XtNfromVert, search->label2); num_args++; XtSetArg(args[num_args], XtNleft, XtChainLeft); num_args++; XtSetArg(args[num_args], XtNright, XtChainLeft); num_args++; - XtSetArg(args[num_args], XtNradioData, (XPointer)XawsdLeft + R_OFFSET); + XtSetArg(args[num_args], XtNradioData, (XPointer)(XawsdLeft + R_OFFSET)); num_args++; search->left_toggle = XtCreateManagedWidget("backwards", toggleWidgetClass, form, args, num_args); @@ -688,7 +688,7 @@ AddSearchChildren(Widget form, String ptr, Widget tw) XtSetArg(args[num_args], XtNleft, XtChainLeft); num_args++; XtSetArg(args[num_args], XtNright, XtChainLeft); num_args++; XtSetArg(args[num_args], XtNradioGroup, search->left_toggle); num_args++; - XtSetArg(args[num_args], XtNradioData, (XPointer)XawsdRight + R_OFFSET); + XtSetArg(args[num_args], XtNradioData, (XPointer)(XawsdRight + R_OFFSET)); num_args++; search->right_toggle = XtCreateManagedWidget("forwards", toggleWidgetClass, form, args, num_args); |