From d6c24855c179e5be7b12939502079b11daa3df5f Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Sat, 4 Nov 2023 02:04:42 +0000 Subject: c-m-rt: mark Vector as repr(C) --- cortex-m-rt/examples/warnings.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cortex-m-rt/examples/warnings.rs') diff --git a/cortex-m-rt/examples/warnings.rs b/cortex-m-rt/examples/warnings.rs index 3372003..abf4a2f 100644 --- a/cortex-m-rt/examples/warnings.rs +++ b/cortex-m-rt/examples/warnings.rs @@ -22,6 +22,7 @@ extern "C" { fn INT(); } +#[repr(C)] union Vector { #[allow(dead_code)] handler: unsafe extern "C" fn(), -- cgit v1.2.3