Jeremie Courreges-Anglas:

> > https://wxcvbn.org/~jca/build-failures/amd64-clang/2023-01-03/x11/xpostit.txt
> menu.c:123:58: error: incompatible integer to pointer conversion passing 
> 'int' to parameter of type 'XtPointer' (aka 'void *') [-Wint-conversion]
>                 XtAddCallback(entry, XtNcallback, HandleMenuSelection, i);
>                                                                        ^

That's a pattern found in old X11 code.  Callbacks take a pointer
to be able to pass arbitrary data, but instead of allocating an int
and passing a pointer to it, people just jam the int directly into
the pointer for an int -> pointer -> int conversion.

I guess an explicit cast will fix it?

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to