Fix compiler warnings in the Mac and iOS builds !441

merged merged by cmc on 2026-11-22 02:26 UTC · krz/orgstar:fix-warnings into main

Discussion

cmc

Clears the warnings Xcode reports for the Orgstar, Orgstar iOS and OrgApp targets. No behaviour change intended.

  • ElementCommands.swift:42: lookingAtLine returns a Bool, so == nil was always false and the line never ran. Removed, which keeps what the code does today.
  • LaTeXExport.swift: above was a constant false; the two dead branches are gone.
  • AgendaScreen: agenda is a let (no $agenda binding was used), so the nonisolated == can read it. The Identifiable conformance names both modules, which is valid in the SwiftPM build and silences the retroactive-conformance warning in the Xcode target.
  • DocumentScanner.pdf, PlotChart.Surface.interpolate and TimerModel.notification are nonisolated.
  • MobileEditor: redundant internal(set) removed.
  • ThemePickerScreen: the sample is built from AttributedString runs instead of the deprecated Text +.
  • OverdueBadge: the key's optionals go through String(describing:), giving the same strings as before.

Tests pass; the SwiftPM Mac build, the SwiftPM iOS scheme and the Xcode Orgstar iOS scheme build with none of these warnings.