From: Marc Dionne Date: Wed, 28 May 2014 13:53:58 +0000 (-0400) Subject: vol: Fix gcc 4.9 warnings X-Git-Tag: upstream/1.8.0_pre1^2~667 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c0683441a0121433d772bfb36e1e9a1c020a5dcb;p=packages%2Fo%2Fopenafs.git vol: Fix gcc 4.9 warnings gcc 4.9 complains here because the trailing 0 in these macros has no effect, the value having already been set to NULL. Just remove the offending 0s, nothing uses the return value anyway, even if there were platforms where 0 != NULL. Change-Id: Ic9a79d51419726c0c823a9228c21c13dea918dc8 Reviewed-on: http://gerrit.openafs.org/11176 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: D Brashear --- diff --git a/src/vol/ihandle.h b/src/vol/ihandle.h index 56223edc6..4c76467d2 100644 --- a/src/vol/ihandle.h +++ b/src/vol/ihandle.h @@ -348,9 +348,9 @@ extern FdHandle_t *ih_attachfd(IHandle_t * ihP, FD_t fd); #define IH_OPEN(H) ih_open(H) -#define FDH_CLOSE(H) (fd_close(H), (H)=NULL, 0) +#define FDH_CLOSE(H) (fd_close(H), (H)=NULL) -#define FDH_REALLYCLOSE(H) (fd_reallyclose(H), (H)=NULL, 0) +#define FDH_REALLYCLOSE(H) (fd_reallyclose(H), (H)=NULL) #define FDH_FDOPEN(H, A) stream_fdopen((H)->fd_fd) @@ -374,7 +374,7 @@ extern FdHandle_t *ih_attachfd(IHandle_t * ihP, FD_t fd); #define STREAM_REALLYCLOSE(H) stream_close(H, 1) -#define IH_RELEASE(H) (ih_release(H), (H)=NULL, 0) +#define IH_RELEASE(H) (ih_release(H), (H)=NULL) #define IH_REALLYCLOSE(H) ih_reallyclose(H)