]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: silence compilation warnings 8058/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 11 Mar 2016 19:28:06 +0000 (11:28 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 11 Mar 2016 19:28:06 +0000 (11:28 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_s3.cc

index af6ae7d98b6ece76d7548a1cb24aaa63e6cb6a12..9e5b5f1f6d4829b166224d75809f8a04d2104e8b 100644 (file)
@@ -165,14 +165,14 @@ int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs,
   if (s->system_request && lastmod) {
     /* we end up dumping mtime in two different methods, a bit redundant */
     dump_epoch_header(s, "Rgwx-Mtime", lastmod);
-    uint64_t pg_ver;
+    uint64_t pg_ver = 0;
     int r = decode_attr_bl_single_value(attrs, RGW_ATTR_PG_VER, &pg_ver, (uint64_t)0);
     if (r < 0) {
       ldout(s->cct, 0) << "ERROR: failed to decode pg ver attr, ignoring" << dendl;
     }
     STREAM_IO(s)->print("Rgwx-Obj-PG-Ver: %lld\r\n", (long long)pg_ver);
 
-    uint32_t source_zone_short_id;
+    uint32_t source_zone_short_id = 0;
     r = decode_attr_bl_single_value(attrs, RGW_ATTR_SOURCE_ZONE, &source_zone_short_id, (uint32_t)0);
     if (r < 0) {
       ldout(s->cct, 0) << "ERROR: failed to decode pg ver attr, ignoring" << dendl;