]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix shadowing in inode ctor
authorSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 21:20:51 +0000 (14:20 -0700)
committerSage Weil <sage@inktank.com>
Mon, 15 Oct 2012 21:20:51 +0000 (14:20 -0700)
commit0095a138242ff958929a5e517b11ece07778a3d4
tree0bfd3c424784757dee0c9d1ce43eb232ac4d3438
parentd8bb685d846d68b8aa55af5b0fd30b1df25428ae
client: fix shadowing in inode ctor

CID 728080 (#1 of 1): Incorrect sizeof expression (BAD_SIZEOF)
Taking the size of pointer parameter "layout" is suspicious.

At (2): Non-static class member field "layout.fl_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (4): Non-static class member field "layout.fl_stripe_count" is not initialized in this constructor nor in any functions that it calls.
At (6): Non-static class member field "layout.fl_object_size" is not initialized in this constructor nor in any functions that it calls.
At (8): Non-static class member field "layout.fl_cas_hash" is not initialized in this constructor nor in any functions that it calls.
At (10): Non-static class member field "layout.fl_object_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (12): Non-static class member field "layout.fl_unused" is not initialized in this constructor nor in any functions that it calls.
CID 717206 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (14): Non-static class member field "layout.fl_pg_pool" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
src/client/Inode.h