Skip to content

Commit

Permalink
Do not report unused args as errors (#1559)
Browse files Browse the repository at this point in the history
Some projects use `-Werror` to turn all warnings into errors.
This affects `Centipede` as we do not separate build and linking flags
as it expects, which leads to `unused-command-line-argument` warnings.
This PR disables turning that specific warning into errors and keeps the
rest the same.

See [the same PR from
OSS-Fuzz](google/oss-fuzz#9030) for more info
and [the error in this PR](google/oss-fuzz#8990)
for its use case.
  • Loading branch information
DonggeLiu authored Nov 23, 2022
1 parent e87097d commit 3878b68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion benchmarks/systemd_fuzz-varlink/benchmark.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fuzz_target: fuzz-varlink
project: systemd
unsupported_fuzzers:
- centipede
- aflcc
- afl_qemu
- aflplusplus_qemu
Expand Down
1 change: 1 addition & 0 deletions fuzzers/centipede/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def build():
san_cflags = ['-fsanitize-coverage=trace-loads']

link_cflags = [
'-Wno-error=unused-command-line-argument',
'-ldl',
'-lrt',
'-lpthread',
Expand Down

0 comments on commit 3878b68

Please sign in to comment.