aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_utils.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-04-02 18:13:40 +0000
committerAlex Elder <aelder@sgi.com>2011-04-08 08:09:24 -0500
commit957935dcd8e11d6f789b4ed769b376040e15565b (patch)
tree6f120bac2011bdba637f39d3704ec0272b883726 /fs/xfs/xfs_utils.c
parentxfs: fix variable set but not used warnings (diff)
downloadlinux-dev-957935dcd8e11d6f789b4ed769b376040e15565b.tar.xz
linux-dev-957935dcd8e11d6f789b4ed769b376040e15565b.zip
xfs: fix xfs_debug warnings
For a CONFIG_XFS_DEBUG=n build gcc complains about statements with no effect in xfs_debug: fs/xfs/quota/xfs_qm_syscalls.c: In function 'xfs_qm_scall_trunc_qfiles': fs/xfs/quota/xfs_qm_syscalls.c:291:3: warning: statement with no effect The reason for that is that the various new xfs message functions have a return value which is never used, and in case of the non-debug build xfs_debug the macro evaluates to a plain 0 which produces the above warnings. This can be fixed by turning xfs_debug into an inline function instead of a macro, but in addition to that I've also changed all the message helpers to return void as we never use their return values. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_utils.c')
0 files changed, 0 insertions, 0 deletions