Skip to content

[nfc] Fix compiler warnings based on KJ_HEADER_WARNINGS - #7419

Merged
fhanau merged 3 commits into
mainfrom
felix/091726-build
Sep 18, 2026
Merged

fhanau merged 3 commits into
mainfrom
felix/091726-build

Conversation

@fhanau

@fhanau fhanau commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

We really need to ban using nullptrs with kj::Maybe instead of just deprecating it.

@fhanau
fhanau requested a review from git-bruh September 17, 2026 18:29
@fhanau
fhanau requested review from a team as code owners September 17, 2026 18:29
Comment thread build/ci.bazelrc
@ask-bonk

ask-bonk Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

LGTM!

github run

These aren't diagnosed by the compiler since they have a non-trivial destructor.
- Make a few operators const to avoid `ISO C++20 considers use of overloaded
  operator '==' (with operand types <type> and <type>) to be ambiguous despite
  there being a unique best viable function` warnings
- Address `'operator==' is deprecated: Using nullptr as an empty Maybe is
  deprecated and will be removed. Please use kj::none for this purpose instead`
  warnings
This should only be needed for some tests, no need to disable it completely.
@fhanau
fhanau merged commit b93fa71 into main Sep 18, 2026
36 of 38 checks passed
@fhanau
fhanau deleted the felix/091726-build branch September 18, 2026 18:25
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