From: Danny Al-Gaaf Date: Thu, 13 Mar 2014 17:30:54 +0000 (+0100) Subject: mds/Migrator.h: init some export_state_t members in ctor X-Git-Tag: v0.79~149^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a53aa82f00b6200e7f7332a9d1eeaa53593483e;p=ceph.git mds/Migrator.h: init some export_state_t members in ctor CID 1188165 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member "state" is not initialized in this constructor nor in any functions that it calls. 4. uninit_member: Non-static class member "peer" is not initialized in this constructor nor in any functions that it calls. 6. uninit_member: Non-static class member "tid" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/Migrator.h b/src/mds/Migrator.h index 0bf35f08f35..928d197bf88 100644 --- a/src/mds/Migrator.h +++ b/src/mds/Migrator.h @@ -96,7 +96,8 @@ protected: utime_t last_cum_auth_pins_change; int last_cum_auth_pins; int num_remote_waiters; // number of remote authpin waiters - export_state_t() : mut(NULL), last_cum_auth_pins(0), num_remote_waiters(0) {} + export_state_t() : state(0), peer(0), tid(0), mut(NULL), + last_cum_auth_pins(0), num_remote_waiters(0) {} }; map export_state;