Skip to content

Commit 017f605

Browse files
committed
fix: explicitely disable instrument hooks warnings
1 parent a8754dd commit 017f605

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

crates/codspeed/build.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ fn main() {
77

88
let mut build = cc::Build::new();
99
build
10-
.flag("-std=c11")
1110
.file("instrument-hooks/dist/core.c")
1211
.include("instrument-hooks/includes")
12+
.std("c11")
1313
// We generated the C code from Zig, which contains some warnings
1414
// that can be safely ignored.
1515
.flag("-Wno-format")
@@ -18,15 +18,11 @@ fn main() {
1818
.flag("-Wno-unused-const-variable")
1919
.flag("-Wno-type-limits")
2020
.flag("-Wno-uninitialized")
21-
// Ignore warnings when cross-compiling:
2221
.flag("-Wno-overflow")
2322
.flag("-Wno-unused-function")
2423
.flag("-Wno-constant-conversion")
2524
.flag("-Wno-incompatible-pointer-types")
26-
// Disable warnings, as we will have lots of them
27-
.warnings(false)
28-
.extra_warnings(false)
29-
.cargo_warnings(false)
25+
.flag("-Wno-unterminated-string-initialization")
3026
.opt_level(3);
3127

3228
let result = build.try_compile("instrument_hooks");

0 commit comments

Comments
 (0)