Browse Source

fix: 解决bindings.rs报了很多警告的问题 (#85)

* fix: 解决bindings.rs报一堆警告的问题
login 2 years ago
parent
commit
c6174797dc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      kernel/build.rs

+ 3 - 0
kernel/build.rs

@@ -32,6 +32,9 @@ fn main() {
             .use_core()
             .ctypes_prefix("::core::ffi")
             .generate_inline_functions(true)
+            .raw_line("#![allow(dead_code)]")
+            .raw_line("#![allow(non_upper_case_globals)]")
+            .raw_line("#![allow(non_camel_case_types)]")
             // Tell cargo to invalidate the built crate whenever any of the
             // included header files changed.
             .parse_callbacks(Box::new(bindgen::CargoCallbacks))