vol: Fix gcc 4.9 warnings
authorMarc Dionne <marc.dionne@your-file-system.com>
Wed, 28 May 2014 13:53:58 +0000 (09:53 -0400)
committerD Brashear <shadow@your-file-system.com>
Sat, 31 May 2014 11:34:52 +0000 (07:34 -0400)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>

src/vol/ihandle.h

index 56223ed..4c76467 100644 (file)
@@ -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)