Skip to content

Commit

Permalink
Suppress warnings in macro expansions
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <nick@nickspinale.com>
  • Loading branch information
nspin committed Sep 19, 2024
1 parent 1cd063a commit bb353b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/sel4-root-task/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ extern "Rust" {
#[macro_export]
macro_rules! declare_main {
($main:expr) => {
#[allow(non_snake_case)]
#[no_mangle]
fn __sel4_root_task__main(bootinfo: &$crate::_private::BootInfoPtr) -> ! {
$crate::_private::run_main($main, bootinfo);
Expand Down
1 change: 1 addition & 0 deletions crates/sel4-runtime-common/src/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use core::arch::global_asm;
#[macro_export]
macro_rules! declare_stack {
($size:expr) => {
#![allow(non_upper_case_globals)]
#[no_mangle]
static __sel4_runtime_common__stack_bottom: $crate::_private::start::StackBottom = {
static STACK: $crate::_private::start::Stack<{ $size }> =
Expand Down

0 comments on commit bb353b4

Please sign in to comment.