From 3878b6828f9775170ec7a298b96a03fd66743ce3 Mon Sep 17 00:00:00 2001 From: Dongge Liu Date: Wed, 23 Nov 2022 22:53:37 +1100 Subject: [PATCH] Do not report unused args as errors (#1559) 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](https://github.com/google/oss-fuzz/pull/9030) for more info and [the error in this PR](https://github.com/google/oss-fuzz/pull/8990) for its use case. --- benchmarks/systemd_fuzz-varlink/benchmark.yaml | 1 - fuzzers/centipede/fuzzer.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/systemd_fuzz-varlink/benchmark.yaml b/benchmarks/systemd_fuzz-varlink/benchmark.yaml index 2a2b86f3f..beb0f72b9 100644 --- a/benchmarks/systemd_fuzz-varlink/benchmark.yaml +++ b/benchmarks/systemd_fuzz-varlink/benchmark.yaml @@ -1,7 +1,6 @@ fuzz_target: fuzz-varlink project: systemd unsupported_fuzzers: - - centipede - aflcc - afl_qemu - aflplusplus_qemu diff --git a/fuzzers/centipede/fuzzer.py b/fuzzers/centipede/fuzzer.py index 2a862b501..b0b89c6a9 100755 --- a/fuzzers/centipede/fuzzer.py +++ b/fuzzers/centipede/fuzzer.py @@ -24,6 +24,7 @@ def build(): san_cflags = ['-fsanitize-coverage=trace-loads'] link_cflags = [ + '-Wno-error=unused-command-line-argument', '-ldl', '-lrt', '-lpthread',