We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5e3555 commit f54b173Copy full SHA for f54b173
1 file changed
crates/codspeed/build.rs
@@ -15,6 +15,19 @@ fn main() {
15
.flag("-std=c11")
16
.file("instrument-hooks/dist/core.c")
17
.include("instrument-hooks/includes")
18
+ // We generated the C code from Zig, which contains some warnings
19
+ // that can be safely ignored.
20
+ .flag("-Wno-uninitialized")
21
+ .flag("-Wno-unused-variable")
22
+ .flag("-Wno-unused-parameter")
23
+ .flag("-Wno-unused-but-set-variable")
24
+ .flag("-Wno-type-limits")
25
+ .flag("-Wno-format")
26
+ .flag("-Wno-format-security")
27
+ .flag("-Wno-builtin-declaration-mismatch")
28
+ .flag("-Wno-overflow")
29
+ // Not supported in clang: https://stackoverflow.com/a/41673702
30
+ .flag_if_supported("-Wno-maybe-uninitialized")
31
.warnings(false)
32
.extra_warnings(false)
33
.cargo_warnings(false);
0 commit comments