Skip to content

Conversation

@CanerKaraca23
Copy link
Contributor

@CanerKaraca23 CanerKaraca23 commented Dec 22, 2025

Fixes ksud-extra warnings, edits welcomed.

Copilot AI review requested due to automatic review settings December 22, 2025 23:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes Rust compiler warnings in the ksud codebase by adding appropriate conditional compilation attributes and refactoring variable initialization patterns.

  • Added #[cfg_attr(not(target_os = "android"), allow(dead_code))] to VERSION_CODE constant that's only used in Android-specific modules
  • Added #[cfg_attr(not(target_os = "android"), allow(unused_variables))] to find_boot_image function whose parameters are primarily used in Android builds
  • Refactored bootdevice variable in find_boot_image from mutable to immutable with conditional initialization

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
userspace/ksud/src/defs.rs Suppresses dead code warning for VERSION_CODE constant on non-Android platforms
userspace/ksud/src/boot_patch.rs Adds unused variable suppression for non-Android builds and refactors bootdevice initialization to be immutable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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