Skip to content

Conversation

@ajlennon
Copy link
Member

Summary

This PR fixes all compiler warnings in the codebase.

Changes

  • WGS84Converter.cs: Removed unused variables (re, slat, clat, tangc) that were declared but never used
  • MQTTControl.cs:
    • Added #nullable enable directive
    • Initialized nullable fields to fix nullable reference warnings
    • Fixed null reference warning in Publish method
  • Program.cs: Added #nullable enable directive
  • UWBManager.cs: Suppressed CS4014 warning for fire-and-forget async call with explicit discard

Result

Build now completes with 0 warnings

Testing

  • ✅ Build succeeds with no warnings
  • ✅ All functionality preserved
  • ✅ No breaking changes

- Remove unused variables in WGS84Converter.cs (re, slat, clat, tangc)
- Add #nullable enable to MQTTControl.cs and Program.cs for nullable reference type annotations
- Initialize nullable fields in MQTTControl.cs to fix nullable warnings
- Suppress CS4014 warning for fire-and-forget async call in UWBManager.cs
- Fix null reference warning in MQTTControl.Publish method

Build now completes with 0 warnings.
@ajlennon ajlennon requested a review from Jen42 November 24, 2025 23:46
Copy link
Collaborator

@Jen42 Jen42 left a comment

Choose a reason for hiding this comment

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

Please revert changes in [WGS84Converter.cs]

Jen42 requested to revert changes in WGS84Converter.cs.
Restored original variable declarations (re, slat, clat, tangc) that were removed to fix warnings.
@Jen42 Jen42 merged commit 1d31c4b into main Nov 25, 2025
1 check passed
@Jen42 Jen42 deleted the feature/fix-build-warnings branch November 25, 2025 00:01
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.

3 participants