]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: fix xfs_extent_busy_flush macro definition
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Apr 2017 22:29:48 +0000 (17:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 10 Apr 2017 22:29:48 +0000 (17:29 -0500)
xfs_extent_busy_flush is a void function, so don't reduce it to zero.
This shuts up gcc warnings about do-nothing statements.

[sandeen: switch to more common ((void)0) paradigm]

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h

index c2d4494b6e09f8a16374426c5604f22782778284..23875e5d517ff7f3502f9026ccbe29c9a503eba0 100644 (file)
@@ -419,7 +419,7 @@ roundup_64(__uint64_t x, __uint32_t y)
        *(busy_gen) = __foo;                                    \
        false;                                                  \
 })
-#define xfs_extent_busy_flush(mp,pag,busy_gen)         (0)
+#define xfs_extent_busy_flush(mp,pag,busy_gen)         ((void)(0))
 
 /* avoid unused variable warning */
 #define xfs_alloc_busy_insert(tp,ag,b,len)     ({      \