Project

General

Profile

Actions

Cleanup #52755

open

RADOS - Cleanup #52752: fix warnings

ubuntu 20.04 : rgw warnings

Added by Deepika Upadhyay over 2 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_lc.cc: In function 'std::string rgw::lc::s3_expiration_header(DoutPrefixProvider*, const rgw_obj_key&, const RGWObjTags&, const real_time&, const std::map<std::__cxx11::basic_string<char>, ceph::buffer::v15_2_0::list>&)':
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_lc.cc:2223:31: warning: '*((void*)& expiration_date +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
 2223 |       if ((! expiration_date) ||
      |           ~~~~~~~~~~~~~~~~~~~~^~
 2224 |    (*expiration_date > *rule_expiration_date)) {
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_kms.cc: In member function 'int TransitSecretEngine::make_actual_key(std::map<std::__cxx11::basic_string<char>, ceph::buffer::v15_2_0::list>&, std::string&)':
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_kms.cc:86:22: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
   86 |  if (r && old) memcpy(r, p, nw);
      |                ~~~~~~^~~~~~~~~~
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_kms.cc:83:8: note: 'r' was declared here
   83 |  void *r;
      |        ^
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_file.h: In member function 'virtual void rgw::RGWReaddirRequest::send_response()':
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_file.h:1745:12: warning: '*((void*)& di +72)' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1745 |         << " call count=" << ix
      |            ^~~~~~~~~~~~~~
/build/ceph-17.0.0-7800-gd35920da/src/rgw/rgw_file.h:1683:17: warning: '*((void*)& di +64)' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1683 |     DirIterator di{objs, common_prefixes};
      |                 ^~

https://jenkins.ceph.com/job/ceph-dev-new-build/ARCH=x86_64,AVAILABLE_ARCH=x86_64,AVAILABLE_DIST=focal,DIST=focal,MACHINE_SIZE=gigantic/57699//consoleFull

Actions #1

Updated by Deepika Upadhyay over 2 years ago

  • Translation missing: en.field_tag_list set to low-hanging-fruit, good-first-issue
  • Project changed from RADOS to rgw
Actions #2

Updated by Laura Flores over 1 year ago

Should be evident when running "ninja rgw -j$(nproc)".

Actions #3

Updated by Samarah Uriarte 10 months ago

I tried to reproduce this issue but I was unable to, even with clang. Is there any other information, such as gcc version, you can provide?

Actions

Also available in: Atom PDF