From: Jim Meyering Date: Wed, 29 Oct 2008 13:48:37 +0000 (+0100) Subject: * rpc/xdr.h (XDR_INLINE): Cast result to (void*), to avoid warnings, X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=703843cfabe1d745807e96f9a9651c9d5fe56042;p=portablexdr.git * rpc/xdr.h (XDR_INLINE): Cast result to (void*), to avoid warnings, on at least mingw. --- diff --git a/ChangeLog b/ChangeLog index 002cc27..db718b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-29 Jim Meyering + + * rpc/xdr.h (XDR_INLINE): Cast result to (void*), to avoid warnings, + on at least mingw. + 2008-02-06 Richard Jones * xdr_float.c: Patch by Brecht Sanders which fixes type-punning diff --git a/rpc/xdr.h b/rpc/xdr.h index 3b87848..ba69894 100644 --- a/rpc/xdr.h +++ b/rpc/xdr.h @@ -161,7 +161,7 @@ typedef struct { (*(xdrs)->x_ops->x_setpostn)(xdrs, pos) #define XDR_INLINE(xdrs, len) \ - (*(xdrs)->x_ops->x_inline)(xdrs, len) + (void *)((*(xdrs)->x_ops->x_inline)(xdrs, len)) #define xdr_inline(xdrs, len) \ (*(xdrs)->x_ops->x_inline)(xdrs, len)