You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-libs/libXaw3dXft/files/libXaw3dXft-1.6.2h-fix-gcc-...

18 lines
733 B

https://bugs.gentoo.org/919239
Fix compilation with gcc 14 [-Wincompatible-pointer-types]
buffer_return is a char* cast to wchar_t* at call site.
--- a/src/XawIm.c
+++ b/src/XawIm.c
@@ -1522,7 +1522,7 @@
if ((vw = SearchVendorShell(inwidg)) && (ve = GetExtPart(vw)) &&
ve->im.xim && (p = GetIcTableShared(inwidg, ve)) && p->xic) {
if (_Xaw3dXft->encoding == -1)
- ret = Xutf8LookupString (p->xic, event, buffer_return, bytes_buffer, keysym_return, status_return);
+ ret = Xutf8LookupString (p->xic, event, (char*)buffer_return, bytes_buffer, keysym_return, status_return);
else
ret = XwcLookupString(p->xic, event, buffer_return, bytes_buffer,
keysym_return, status_return);