Skip to content

Commit

Permalink
Reduce clang warnings for version output in libafl_cc. (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 13, 2022
1 parent f5a5c08 commit 8cff2ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libafl_cc/src/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ impl CompilerWrapper for ClangWrapper {
let mut shared = false;
// Detect stray -v calls from ./configure scripts.
if args.len() > 1 && args[1].as_ref() == "-v" {
if args.len() == 2 {
self.base_args.push(args[1].as_ref().into());
return Ok(self);
}
linking = false;
}

Expand Down

0 comments on commit 8cff2ce

Please sign in to comment.