]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
erasure-code/clay: do not set unreferenced variable
authorKefu Chai <kchai@redhat.com>
Tue, 17 Aug 2021 00:46:08 +0000 (08:46 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Aug 2021 00:47:33 +0000 (08:47 +0800)
commit4152cef1e14aa468aed7e32671bb4544f7f7ce17
treed2748f359b8f5ebc2d04f65acddeb489bde7318c
parent621725ab4763d5c6e65bc6088b08929bfe632bfb
erasure-code/clay: do not set unreferenced variable

plane_count was introduced by 2a3e56b22c5b52e4834a9fd5047b3cdff7e8859f,
and presumably it is only used for debugging. let's drop it as it is not
referenced in production.

this change silences following warning:

../src/erasure-code/clay/ErasureCodeClay.cc:502:7: error: variable 'plane_count' set but not used [-Werror,-Wunused-but-set-variable]
  int plane_count = 0;
      ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/erasure-code/clay/ErasureCodeClay.cc