mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
audio/xwave: fix build
The problem is an implicit type conversion: StrToPmap.c:143:19: error: incompatible pointer to integer conversion assigning to 'XrmName' (aka 'int') from 'void *' [-Wint-conversion] xrm_name[1] = NULL; PR: 270150 Reported by: a0516@marimga.de (maintainer)
This commit is contained in:
parent
fb94e49560
commit
b9452f5c14
16
audio/xwave/files/patch-FWF_StrToPmap
Normal file
16
audio/xwave/files/patch-FWF_StrToPmap
Normal file
@ -0,0 +1,16 @@
|
||||
--- FWF/src/converters/StrToPmap.c.orig 1998-11-09 00:22:54.000000000 +0100
|
||||
+++ FWF/src/converters/StrToPmap.c 2023-03-12 08:38:29.924468000 +0100
|
||||
@@ -140,9 +140,11 @@
|
||||
XrmValue value;
|
||||
|
||||
xrm_name[0] = XrmStringToName ("pixmapFilePath");
|
||||
- xrm_name[1] = NULL;
|
||||
+ xrm_name[1] = 0; // Replaced NULL by 0.
|
||||
+ // XrmName/XrmQuark is of type int. M. Kraft 2023-03-12
|
||||
xrm_class[0] = XrmStringToClass ("PixmapFilePath");
|
||||
- xrm_class[1] = NULL;
|
||||
+ xrm_class[1] = 0; // Replaced NULL by 0.
|
||||
+ // XrmName/XrmQuark is of type int. M. Kraft 2023-03-12
|
||||
if (!XrmGetDatabase(dpy)) {
|
||||
(void) XGetDefault (dpy, "", "");
|
||||
}
|
Loading…
Reference in New Issue
Block a user