Reduce clang warnings for version output in libafl_cc. (#778)

This commit is contained in:
David CARLIER 2022-09-13 12:59:35 +01:00 committed by GitHub
parent f5a5c08e5d
commit 8cff2ce745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}