ddraw/ddraw/hal.c:152: initialization from incompatible pointer type
Raphaël Junqueira
fenix at club-internet.fr
Mon Jan 20 14:20:32 CST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 20 January 2003 11:52, Gerald Pfeifer wrote:
> The following
>
> static DDHALDDRAWFNS hal_funcs = {
> sizeof(DDHALDDRAWFNS),
> ===>set_hal_info,<===
> NULL, /* VidMemAlloc */
> NULL /* VidMemFree */
> };
>
> in dlls/ddraw/ddraw/hal.c causes GCC 3.2 (on SuSE Linux 8.1) to warn:
>
> ddraw/hal.c:152: warning: initialization from incompatible pointer type
>
> Could someone please have a look?
Hi,
can you test this patch (it fix this stupid warning for me)
> Thanks,
> Gerald
Raphael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+LFoQp7NA3AmQTU4RAuBaAJ4tSjQc63RQglkM5uXWkHaamwSNFwCfck1Q
C86FIBaKVOJTZoCjSSC69II=
=Ky2l
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: ddraw/hal.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/ddraw/hal.c,v
retrieving revision 1.9
diff -u -r1.9 hal.c
--- ddraw/hal.c 13 Jan 2003 18:30:47 -0000 1.9
+++ ddraw/hal.c 20 Jan 2003 20:17:26 -0000
@@ -149,7 +149,7 @@
static DDHALDDRAWFNS hal_funcs = {
sizeof(DDHALDDRAWFNS),
- set_hal_info,
+ (LPDDHAL_SETINFO) set_hal_info,
NULL, /* VidMemAlloc */
NULL /* VidMemFree */
};
More information about the wine-devel
mailing list