Skip to content

Commit

Permalink
refactor: show cc compilation wanings
Browse files Browse the repository at this point in the history
  • Loading branch information
Orycterope committed May 11, 2021
1 parent 15314ba commit a93fa08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion yara-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ mod build {
};

// Unfortunately, YARA compilation produces lots of warnings
cc.warnings(false);
// Ignore some of them.
cc.flag_if_supported("-Wno-deprecated-declarations")
.flag_if_supported("-Wno-unused-parameter")
.flag_if_supported("-Wno-unused-function")
.flag_if_supported("-Wno-cast-function-type")
.flag_if_supported("-Wno-type-limits")
.flag_if_supported("-Wno-tautological-constant-out-of-range-compare")
.flag_if_supported("-Wno-sign-compare"); // maybe this one shouldn't be silenced.

cc.compile("yara");

Expand Down

0 comments on commit a93fa08

Please sign in to comment.