Skip to content
Snippets Groups Projects
Commit 0d0072e4 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

TextPop: do arithmetic before casting to pointer, not after


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: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <!38>
parent af1a1d42
No related branches found
No related tags found
Loading
Checking pipeline status