mirror of
https://github.com/ceph/ceph
synced 2025-04-04 23:42:13 +00:00
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:
parent
6cc8bae58c
commit
2a83ef3c3d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user