include/encoding: fix an compile warning

./include/encoding.h:317:7: warning: 't' may be used uninitialized in
this function [-Wmaybe-uninitialized]

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Zhiqiang Wang 2015-02-04 08:22:41 +08:00 committed by Sage Weil
parent 6cc8bae58c
commit 2a83ef3c3d

View File

@ -308,6 +308,7 @@ inline void encode(const boost::optional<T> &p, bufferlist &bl)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
template<typename T>
inline void decode(boost::optional<T> &p, bufferlist::iterator &bp)
{