From: Samuel Just Date: Tue, 25 Sep 2012 21:10:11 +0000 (-0700) Subject: osd_types: uninit var in ctor pg_query_t X-Git-Tag: v0.53~41^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a3efbbcffc3e1aac220c35d91924db3547d134c;p=ceph.git osd_types: uninit var in ctor pg_query_t CID 717346: Uninitialized scalar field (UNINIT_CTOR)At (2): Non-static class member "epoch_sent" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Samuel Just --- diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index 679ab7e7c4d..e8982b2a8d9 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -1168,7 +1168,7 @@ struct pg_query_t { pg_history_t history; epoch_t epoch_sent; - pg_query_t() : type(-1) {} + pg_query_t() : type(-1), epoch_sent(0) {} pg_query_t(int t, const pg_history_t& h, epoch_t epoch_sent) : type(t), history(h),