From 703843cfabe1d745807e96f9a9651c9d5fe56042 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 29 Oct 2008 14:48:37 +0100 Subject: [PATCH] * rpc/xdr.h (XDR_INLINE): Cast result to (void*), to avoid warnings, on at least mingw. --- ChangeLog | 5 +++++ rpc/xdr.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 1.8.3.1