Commit af14b797 authored by Max Moroz's avatar Max Moroz Committed by Commit Bot

[libFuzzer] Suppress -Wunused-result error caused by _FORTIFY_SOURCE config.

Bug: 932188
Change-Id: Ifa2342a2620a6a63beb00dda306784062271d4e6
Reviewed-on: https://chromium-review.googlesource.com/c/1474992Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarJonathan Metzman <metzman@chromium.org>
Commit-Queue: Max Moroz <mmoroz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632745}
parent 4798d085
......@@ -4,6 +4,16 @@
import("///build/config/sanitizers/sanitizers.gni")
config("ignore_unused_result_warning") {
if (is_clang) {
cflags = [
# See crbug.com/932188, libFuzzer does not check the result of write()
# when it does raw printing.
"-Wno-unused-result",
]
}
}
# Engine should be compiled without coverage (infinite loop in trace_cmp).
fuzzing_engine_remove_configs = [
"//build/config/coverage:default_coverage",
......@@ -19,8 +29,10 @@ fuzzing_engine_remove_configs = [
# have a different ABI) in the final binary, which is problematic for TUs
# expecting one particular ABI (https://crbug.com/915422). The other sanitizers
# are added back for the same reason.
fuzzing_engine_add_configs =
[ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ]
fuzzing_engine_add_configs = [
"//build/config/sanitizers:default_sanitizer_flags_but_coverage",
":ignore_unused_result_warning",
]
source_set("libfuzzer") {
sources = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment