Skip to content

Commit d23eb77

Browse files
committed
Replace -w flag with warnings directive
1 parent ad8e47c commit d23eb77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl Build {
239239

240240
config
241241
.include(&source_dir)
242-
.flag("-w") // Suppress all warnings
242+
.warnings(false) // Suppress all warnings
243243
.flag_if_supported("-fno-common") // Compile common globals like normal definitions
244244
.add_files_by_ext(&source_dir, "c")?
245245
.out_dir(&lib_dir)

0 commit comments

Comments
 (0)