diff options
author | Jason Carey <jcarey@argv.me> | 2016-03-02 18:26:37 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2016-03-02 18:26:37 -0500 |
commit | f3dac8565e35184317717bdc46c2f5967d120be7 (patch) | |
tree | f383a1388f20180a5926cfd8ab6ace748e5e230e /src/mongo/util/bufreader.h | |
parent | ff5b24ce0225bf4b6a76fc33fb3bafc9e645491b (diff) | |
download | mongo-f3dac8565e35184317717bdc46c2f5967d120be7.tar.gz |
Initialize more variables to make gcc happy
For some reason gcc is unhappy with the included callsites which use
bufreader, but only in the presence of the enterprise module.
Initialize them to quiet the compiler warnings.
Diffstat (limited to 'src/mongo/util/bufreader.h')
-rw-r--r-- | src/mongo/util/bufreader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/bufreader.h b/src/mongo/util/bufreader.h index 40cd5743d6a..58e7c5d2816 100644 --- a/src/mongo/util/bufreader.h +++ b/src/mongo/util/bufreader.h @@ -76,7 +76,7 @@ public: /** read in and return an object of the specified type, and advance buffer pointer */ template <typename T> T read() { - T out; + T out{}; read(out); return out; } @@ -93,7 +93,7 @@ public: /** read in and return an object of the specified type, but do not advance buffer pointer */ template <typename T> T peek() const { - T out; + T out{}; peek(out); return out; } |