Skip to content

Fixes TICS violations in wayland_connector.cpp - #4804

Merged
Saviq merged 3 commits into
canonical:mainfrom
DigraJatin:fix/resolve-TICS-violations-wayland_connector-4711
Apr 1, 2026
Merged

Fixes TICS violations in wayland_connector.cpp#4804
Saviq merged 3 commits into
canonical:mainfrom
DigraJatin:fix/resolve-TICS-violations-wayland_connector-4711

Conversation

@DigraJatin

@DigraJatin DigraJatin commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Closes #4711

What's new?

Resolved TICS violations in mentioned file.

  1. reinterpret_cast -> static_cast
  2. initialized earlier uninitalized variable eventfd_t ignored{};
  3. added overload for WlClient::from to accept const client.

@DigraJatin
DigraJatin requested a review from a team as a code owner March 30, 2026 17:26

@RAOF RAOF left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

I think this could be simpler (and avoid const_cast<>) by taking a wl_client const* everywhere instead; client.cpp never needs a non-const wl_client, so we can just store wl_client const* and not need the overrides.

@DigraJatin
DigraJatin requested a review from RAOF March 31, 2026 18:31

@RAOF RAOF left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@RAOF
RAOF added this pull request to the merge queue Apr 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 1, 2026
@AlanGriffiths
AlanGriffiths added this pull request to the merge queue Apr 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 1, 2026
@Saviq
Saviq added this pull request to the merge queue Apr 1, 2026
@DigraJatin

Copy link
Copy Markdown
Contributor Author

BuildAndTest (lxd:...:spread/ubuntu:asan) status check seems to be failing, does not seem to be related to my changes.

@AlanGriffiths

Copy link
Copy Markdown
Contributor

BuildAndTest (lxd:...:spread/ubuntu:asan) status check seems to be failing, does not seem to be related to my changes.

Yeah, seen this one on other PRs too. Sometimes a test "becomes flaky" and we chase down the cause. (Strictly speaking, the test was likely always flaky, but something changed to make it obvious.)

Merged via the queue into canonical:main with commit c6332a2 Apr 1, 2026
29 checks passed
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.

Resolve TICS violations in wayland_connector.cpp

4 participants