aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/warnings.rs
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2023-11-16 00:00:44 +0000
committerGravatar GitHub <noreply@github.com> 2023-11-16 00:00:44 +0000
commit08d30eaa15f9af6d3f13c68a3733115f89ba1781 (patch)
treeb68549e77bd8d4e6dd5d24c5b37465f728e3e6c8 /cortex-m-rt/examples/warnings.rs
parent8050902ff0ccbd04abd9fad7f3d32d3a788f5c8e (diff)
parentd6c24855c179e5be7b12939502079b11daa3df5f (diff)
downloadcortex-m-08d30eaa15f9af6d3f13c68a3733115f89ba1781.tar.gz
cortex-m-08d30eaa15f9af6d3f13c68a3733115f89ba1781.tar.zst
cortex-m-08d30eaa15f9af6d3f13c68a3733115f89ba1781.zip
Merge pull request #494 from rust-embedded/vector-repr-c
c-m-rt: mark Vector as repr(C)
Diffstat (limited to 'cortex-m-rt/examples/warnings.rs')
-rw-r--r--cortex-m-rt/examples/warnings.rs1
1 files changed, 1 insertions, 0 deletions
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(),