]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_bmap.c
xfs: Fix 'set but not used' warning in xfs_bmap_compute_alignments()
authorChandan Babu R <chandanrlinux@gmail.com>
Mon, 5 Apr 2021 22:37:36 +0000 (18:37 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 5 Apr 2021 22:37:36 +0000 (18:37 -0400)
commit3af6ab0ab9a7cbfb0c2bb48f9e47a135f95c5691
tree90631f4273b6192a302e864c109edea46740516f
parent3006cea4c9418998b2cdea3ac65cd78809aa81ee
xfs: Fix 'set but not used' warning in xfs_bmap_compute_alignments()

Source kernel commit: 560ab6c0d12ebccabb83638abe23a7875b946f9a

With both CONFIG_XFS_DEBUG and CONFIG_XFS_WARN disabled, the only reference to
local variable "error" in xfs_bmap_compute_alignments() gets eliminated during
pre-processing stage of the compilation process. This causes the compiler to
generate a "set but not used" warning.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c