[fuzzer][afl] Fix build with GCC

Summary:
Fixes this build error with GCC 9.3.0:

```
../lib/fuzzer/afl/afl_driver.cpp:114:30: error: expected unqualified-id before string constant
  114 | __attribute__((weak)) extern "C" void __sanitizer_set_report_fd(void *);
      |                              ^~~
```

Reviewers: metzman, kcc

Reviewed By: kcc

Subscribers: #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D80479
This commit is contained in:
Kostya Serebryany 2020-05-26 11:31:24 -07:00
parent a94e08d2e8
commit 2e82492540
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ static uint8_t AflInputBuf[kMaxAflInputSize];
// Use this optionally defined function to output sanitizer messages even if // Use this optionally defined function to output sanitizer messages even if
// user asks to close stderr. // user asks to close stderr.
__attribute__((weak)) extern "C" void __sanitizer_set_report_fd(void *); extern "C" __attribute__((weak)) void __sanitizer_set_report_fd(void *);
// Keep track of where stderr content is being written to, so that // Keep track of where stderr content is being written to, so that
// dup_and_close_stderr can use the correct one. // dup_and_close_stderr can use the correct one.