fix warnings hopefully (#245)

This commit is contained in:
julihoh 2021-08-05 21:57:47 +02:00 committed by GitHub
parent 1dddf7e677
commit 2282b09ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -261,8 +261,7 @@ macro_rules! export_runtime {
// mean that this is 'safe'.
static mut GLOBAL_DATA: Option<$rt> = None;
#[cfg(not(test))]
#[$crate::ctor]
#[cfg_attr(not(test), $crate::ctor)]
fn init() {
// See comment on GLOBAL_DATA declaration.
unsafe {

View File

@ -1,3 +1,5 @@
// this is required to be allowed to call the final executable what we want (and need) in Cargo.toml
#![allow(non_snake_case)]
//! Just a small runtime to be used in the smoke test.
use symcc_runtime::{