From c6174797dcf3427f38bfa0f4bd3e039c319f7c5b Mon Sep 17 00:00:00 2001 From: login Date: Thu, 17 Nov 2022 20:29:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3bindings.rs=E6=8A=A5?= =?UTF-8?q?=E4=BA=86=E5=BE=88=E5=A4=9A=E8=AD=A6=E5=91=8A=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#85)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 解决bindings.rs报一堆警告的问题 --- kernel/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/build.rs b/kernel/build.rs index fe0890b1..163476df 100644 --- a/kernel/build.rs +++ b/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))