Skip to content

Commit

Permalink
Merge pull request #27 from Orycterope/show_cc_warnings
Browse files Browse the repository at this point in the history
show cc compilation wanings
  • Loading branch information
Hugal31 committed May 11, 2021
2 parents 15314ba + a93fa08 commit c30065b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion yara-sys/build.rs
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 c30065b

Please sign in to comment.