Project

General

Profile

Actions

Bug #55978

closed

rgw_lua_request.cc warning: the address of ‘rgw::IAM::Policy::statements’ will never be NULL

Added by Casey Bodley almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[297/358] Building CXX object src/rgw/CMakeFiles/rgw_a.dir/rgw_lua_request.cc.o
src/rgw/rgw_lua_request.cc: In static member function ‘static int rgw::lua::request::PolicyMetaTable::IndexClosure(lua_State*)’:
src/rgw/rgw_lua_request.cc:497:48: warning: the address of ‘rgw::IAM::Policy::statements’ will never be NULL [-Waddress]
  497 |       create_metatable<StatementsMetaTable>(L, &(policy->statements));
      |                                                ^~~~~~~~~~~~~~~~~~~~~
In file included from src/rgw/rgw_common.h:29,
                 from src/rgw/rgw_service.h:14,
                 from src/rgw/services/svc_zone.h:6,
                 from src/rgw/rgw_lua_request.cc:5:
src/rgw/rgw_iam_policy.h:511:26: note: ‘rgw::IAM::Policy::statements’ declared here
  511 |   std::vector<Statement> statements;
      |                          ^~~~~~~~~~
Actions

Also available in: Atom PDF