Skip to content

Commit

Permalink
crates/sel4-microkit: Suppress warnings in macro expansions
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 7, 2024
1 parent 2312360 commit 6dd5dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/sel4-microkit/base/src/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ macro_rules! var {
($(#[$attrs:meta])* $symbol:ident: $ty:ty = $default:expr) => {{
use $crate::_private::ImmutableCell;

#[allow(non_upper_case_globals)]
$(#[$attrs])*
#[no_mangle]
#[link_section = ".data"]
Expand Down
1 change: 1 addition & 0 deletions crates/sel4-microkit/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ extern "C" {
#[macro_export]
macro_rules! declare_init {
($init:expr) => {
#[allow(non_snake_case)]
#[no_mangle]
fn __sel4_microkit__main() -> ! {
$crate::_private::run_main($init);
Expand Down

0 comments on commit 6dd5dd0

Please sign in to comment.