Skip to content

Clean up compiler warnings that don't involve concurrency - #21

Merged
ps2 merged 1 commit into
mainfrom
warning-cleanup
Oct 12, 2026
Merged

ps2 merged 1 commit into
mainfrom
warning-cleanup

Conversation

@ps2

@ps2 ps2 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor
  • Remove unitDidChange(to: HKUnit), left from the HKUnit API. It was
    empty and never called; the protocol's default now applies.
  • Error messages cast the error to CustomStringConvertible, which
    always succeeds, so the localizedDescription fallback never ran.
    Use String(describing:) directly; the text is unchanged.
  • Mark the CGMManagerUI conformance @retroactive.

Part of the next-dev build-warning cleanup (see LoopKit/Loop#2567, LoopKit/LoopKit#639). The full LoopWorkspace scheme builds, and these warnings no longer appear.

- Remove unitDidChange(to: HKUnit), left from the HKUnit API. It was
  empty and never called; the protocol's default now applies.
- Error messages cast the error to CustomStringConvertible, which
  always succeeds, so the localizedDescription fallback never ran.
  Use String(describing:) directly; the text is unchanged.
- Mark the CGMManagerUI conformance @retroactive.
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.

1 participant