Remove Warnings in C

Annotating param with __attribute__((unused)) is not supported in windows build
This commit is contained in:
Fabrice Reix 2021-07-03 14:20:56 +02:00
parent 61f3791bdb
commit b82e925ce7

View File

@ -6,5 +6,6 @@ fn main() {
let native_src = project_root.join("native"); let native_src = project_root.join("native");
Build::new() Build::new()
.file(native_src.join("libxml.c")) .file(native_src.join("libxml.c"))
.flag_if_supported("-Wno-unused-parameter") // unused parameter in silent callback
.compile("mylib"); .compile("mylib");
} }