refactor: resolve Sonar scope and binding findings (#5926)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-10-14 11:44:43 -04:00
1 parent b50c7ba139
commit 71a5a90935
21 files changed
+336 -170

No files matched your search

+2 -3
View File
@@ -1041,9 +1041,8 @@ namespace platf {
virtual ~qos_t() {
if (--qos_ref_count == 0) {
for (const auto &tuple : options) {
auto reset_val = std::get<2>(tuple);
if (setsockopt(sockfd, std::get<0>(tuple), std::get<1>(tuple), &reset_val, sizeof(reset_val)) < 0) {
for (const auto &[level, option, reset_val] : options) {
if (setsockopt(sockfd, level, option, &reset_val, sizeof(reset_val)) < 0) {
BOOST_LOG(warning) << "Failed to reset option: "sv << errno;
}
}