[compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc
authorFangrui Song <i@maskray.me>
Mon, 12 Oct 2020 16:57:12 +0000 (09:57 -0700)
committerFangrui Song <i@maskray.me>
Mon, 12 Oct 2020 16:57:12 +0000 (09:57 -0700)
commit1ef0e94d5b0206f69e4e822c6828d0b5121c11fb
tree595367e85c2173d0abca998f8b0f217a06dbe65d
parent17cec6a11a12f815052d56a17ef738cf246a2d9a
[compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc

Noticed by Peter Foley.
In glibc, ::write is declared as __attribute__((__warn_unused_result__)) when __USE_FORTIFY_LEVEL is larger than 0.
compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp
compiler-rt/lib/scudo/standalone/linux.cpp
compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp