From: Danny Al-Gaaf Date: Thu, 25 Sep 2014 11:34:47 +0000 (+0200) Subject: LogEntry.h: init LogEntry::prio in constructor X-Git-Tag: v0.88~130^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17fa397b363d55f0dabf9674af2a5618b472b5a3;p=ceph.git LogEntry.h: init LogEntry::prio in constructor CID 1240202 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member prio is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/LogEntry.h b/src/common/LogEntry.h index 7329595fd718..c6c16b25e278 100644 --- a/src/common/LogEntry.h +++ b/src/common/LogEntry.h @@ -75,7 +75,7 @@ struct LogEntry { string msg; string channel; - LogEntry() : seq(0) {} + LogEntry() : seq(0), prio(CLOG_DEBUG) {} LogEntryKey key() const { return LogEntryKey(who, stamp, seq); } @@ -122,12 +122,12 @@ inline ostream& operator<<(ostream& out, clog_type t) return out << "[DBG]"; case CLOG_INFO: return out << "[INF]"; + case CLOG_SEC: + return out << "[SEC]"; case CLOG_WARN: return out << "[WRN]"; case CLOG_ERROR: return out << "[ERR]"; - case CLOG_SEC: - return out << "[SEC]"; default: return out << "[???]"; }