diff options
author | Christoph Hellwig <[email protected]> | 2011-04-02 18:13:40 +0000 |
---|---|---|
committer | Alex Elder <[email protected]> | 2011-04-08 08:09:24 -0500 |
commit | 957935dcd8e11d6f789b4ed769b376040e15565b (patch) | |
tree | 6f120bac2011bdba637f39d3704ec0272b883726 /lib/mpi/mpi-inline.h | |
parent | ecb697c16c1718ae97bb73ce41a5d5ac2aed29ec (diff) |
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 <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions