Skip to content

Address miscellaneous GCC and Clang warnings#1582

Merged
eramongodb merged 2 commits intomongodb:masterfrom
eramongodb:cxx-warnings
Feb 13, 2026
Merged

Address miscellaneous GCC and Clang warnings#1582
eramongodb merged 2 commits intomongodb:masterfrom
eramongodb:cxx-warnings

Conversation

@eramongodb
Copy link
Copy Markdown
Contributor

@eramongodb eramongodb commented Feb 13, 2026

Followup to #1577 and #1579 where:

  • redundant function-local definitions of class encrypt_opts_deleter were emitting -Wunused-member-function Clang warnings, and
  • the for (auto const& e : a.b().c()) pattern was (understandably) triggering false-positive -Wdangling-reference GCC warnings due to risk of returning a reference/view to a temporary object (not actually the case here, but nevertheless).

@eramongodb eramongodb requested a review from kevinAlbs February 13, 2026 15:54
@eramongodb eramongodb self-assigned this Feb 13, 2026
@eramongodb eramongodb requested a review from a team as a code owner February 13, 2026 15:54
@eramongodb
Copy link
Copy Markdown
Contributor Author

Whoops, excuse the rebase. Was trying to push #1583.

@eramongodb eramongodb merged commit e35e326 into mongodb:master Feb 13, 2026
4 of 18 checks passed
@eramongodb eramongodb deleted the cxx-warnings branch February 13, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants