From f3dac8565e35184317717bdc46c2f5967d120be7 Mon Sep 17 00:00:00 2001 From: Jason Carey Date: Wed, 2 Mar 2016 18:26:37 -0500 Subject: 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. --- src/mongo/util/bufreader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/util/bufreader.h') 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 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 T peek() const { - T out; + T out{}; peek(out); return out; } -- cgit v1.2.1