diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-02-26 13:04:05 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-02-26 13:04:05 +1100 |
commit | 77810cae1a334e1a4ed619cc1f8b5c396c4c0140 (patch) | |
tree | ca4ab4a2b7c4b3d4c097297cb17ce8312162ed51 /src/packing | |
parent | de95d76ec633831c6790a73fea1a02f302b88332 (diff) | |
download | mongo-77810cae1a334e1a4ed619cc1f8b5c396c4c0140.tar.gz |
include/packing.i:315:3: error: 'pv.type' may be used uninitialized in this function
Diffstat (limited to 'src/packing')
-rw-r--r-- | src/packing/pack_impl.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/packing/pack_impl.c b/src/packing/pack_impl.c index d0db6bf4128..5e775e6bfde 100644 --- a/src/packing/pack_impl.c +++ b/src/packing/pack_impl.c @@ -21,8 +21,6 @@ __wt_struct_check(WT_SESSION_IMPL *session, WT_PACK_VALUE pv; int fields; - WT_CLEAR(pv); /* -Wuninitialized. */ - WT_RET(__pack_initn(session, &pack, fmt, len)); for (fields = 0; (ret = __pack_next(&pack, &pv)) == 0; fields++) @@ -57,8 +55,6 @@ __wt_struct_sizev( WT_PACK_VALUE pv; size_t total; - WT_CLEAR(pv); /* -Wuninitialized */ - WT_RET(__pack_init(session, &pack, fmt)); for (total = 0; __pack_next(&pack, &pv) == 0;) { @@ -99,8 +95,6 @@ __wt_struct_packv(WT_SESSION_IMPL *session, WT_PACK_VALUE pv; uint8_t *p, *end; - WT_CLEAR(pv); /* -Wuninitialized */ - WT_RET(__pack_init(session, &pack, fmt)); p = buffer; @@ -154,7 +148,6 @@ __wt_struct_unpackv(WT_SESSION_IMPL *session, p = buffer; end = p + size; - WT_CLEAR(pv.u.item); /* GCC 4.6 lint */ while ((ret = __pack_next(&pack, &pv)) == 0) { WT_RET(__unpack_read(session, &pv, &p, (size_t)(end - p))); |