summaryrefslogtreecommitdiff
path: root/x11-libs/libXaw3dXft/files/libXaw3dXft-1.6.2h-fix-gcc-14.patch
blob: ae69a5dccba109e338c9dc1dec3c93d1b68f1432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);