From c0683441a0121433d772bfb36e1e9a1c020a5dcb Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Wed, 28 May 2014 09:53:58 -0400 Subject: [PATCH 1/1] 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 --- src/vol/ihandle.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vol/ihandle.h b/src/vol/ihandle.h index 56223ed..4c76467 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) -- 1.9.4