From: Nathan Hoad Date: Thu, 30 Apr 2026 18:29:24 +0000 (-0400) Subject: rgw: Move declaration inline to solve compiler warning about an unused variable. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F68702%2Fhead;p=ceph.git rgw: Move declaration inline to solve compiler warning about an unused variable. Signed-off-by: Nathan Hoad --- diff --git a/src/rgw/rgw_appmain.cc b/src/rgw/rgw_appmain.cc index f1eb20d46657..08ba5dca5470 100644 --- a/src/rgw/rgw_appmain.cc +++ b/src/rgw/rgw_appmain.cc @@ -553,12 +553,11 @@ void rgw::AppMain::init_lua() if (!g_conf().get_val("rgw_lua_enable")) return; rgw::sal::Driver* driver = env.driver; - int r{0}; std::string install_dir; #ifdef WITH_RADOSGW_LUA_PACKAGES rgw::lua::packages_t failed_packages; - r = rgw::lua::install_packages(dpp, driver, null_yield, g_conf().get_val("rgw_luarocks_location"), - failed_packages, install_dir); + int r = rgw::lua::install_packages(dpp, driver, null_yield, g_conf().get_val("rgw_luarocks_location"), + failed_packages, install_dir); if (r < 0) { ldpp_dout(dpp, 5) << "WARNING: failed to install Lua packages from allowlist. error: " << r << dendl;