Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static mut transform produces warning with unsafe-op-in-unsafe-fn #537

Open
ia0 opened this issue May 23, 2024 · 0 comments · May be fixed by #558
Open

static mut transform produces warning with unsafe-op-in-unsafe-fn #537

ia0 opened this issue May 23, 2024 · 0 comments · May be fixed by #558

Comments

@ia0
Copy link

ia0 commented May 23, 2024

#![warn(unsafe_op_in_unsafe_fn)]
#[entry]
fn main() -> ! {
    // The next line generates a warning while it shouldn't.
    static mut CLOCKS: MaybeUninit<Clocks> = MaybeUninit::new();
    // ...
}

I see in #411 (comment) that maybe this static mut transform is going to be deprecated. Is that true?

jannic added a commit to jannic/cortex-m that referenced this issue Sep 16, 2024
jannic added a commit to jannic/cortex-m that referenced this issue Sep 17, 2024
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 a pull request may close this issue.

1 participant