8000 cfg-gate Android-only set_or_replace_display by benface · Pull Request #645 · not-fl3/miniquad · GitHub
[go: up one dir, main page]

Skip to content

cfg-gate Android-only set_or_replace_display - #645

Merged
not-fl3 merged 1 commit into
not-fl3:masterfrom
benface:pr-cfg-gate-set-or-replace-display
Jun 15, 2026
Merged

not-fl3 merged 1 commit into
not-fl3:masterfrom
benface:pr-cfg-gate-set-or-replace-display

Conversation

@benface
@benface benface commented Jun 13, 2026
Copy link
Copy Markdown
Contributor

The function is only called on Android (its own doc comment says so). Without the cfg gate, every other target (iOS, macOS, desktop, web) gets a `dead_code` warning on every build. Adding `#[cfg(target_os = "android")]` so it's only compiled on the platform that actually uses it.

The function is only called on Android (its own doc comment says so).
Without the cfg gate, every other target (iOS, macOS, desktop, web)
gets a `dead_code` warning on every build. Add `#[cfg(target_os =
"android")]` so it's only compiled on the platform that actually uses
it.
@not-fl3
not-fl3 merged commit d56735e into not-fl3:master Jun 15, 2026
11 checks passed
@not-fl3
not-fl3 commented Jun 15, 2026
Copy link
Copy Markdown
Owner

Done with the review! Really great job! Please ping me if I miss something.
Your PRs made me very happy, I am glad someone is keeping an eye on IOS miniquad!

@benface
benface deleted the pr-cfg-gate-set-or-replace-display branch June 15, 2026 12:22
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.

2 participants

0