diff options
author | Fabian Meumertzheim <fabian@meumertzhe.im> | 2022-08-04 11:28:06 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2022-08-10 12:50:59 +0200 |
commit | 33bfc7db10bb7adbf3dfc944cbb3711f19bf181b (patch) | |
tree | 5ecbecb3b680141d694e177ad74f829b3f8e4262 /agent | |
parent | 5585339ca6a009d2e2507513b35f05682358f4ba (diff) | |
download | jazzer-api-33bfc7db10bb7adbf3dfc944cbb3711f19bf181b.tar.gz |
all: Mark JNI and fuzz target functions as [[maybe_unused]]
Diffstat (limited to 'agent')
-rw-r--r-- | agent/src/jmh/native/com/code_intelligence/jazzer/runtime/fuzzer_callbacks.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/src/jmh/native/com/code_intelligence/jazzer/runtime/fuzzer_callbacks.cpp b/agent/src/jmh/native/com/code_intelligence/jazzer/runtime/fuzzer_callbacks.cpp index 689a53d6..718a3924 100644 --- a/agent/src/jmh/native/com/code_intelligence/jazzer/runtime/fuzzer_callbacks.cpp +++ b/agent/src/jmh/native/com/code_intelligence/jazzer/runtime/fuzzer_callbacks.cpp @@ -43,7 +43,10 @@ void __sanitizer_cov_trace_div8(uint64_t val); void __sanitizer_cov_trace_gep(uintptr_t idx); // Not called but required to link against libFuzzer. -int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) { return 0; } +[[maybe_unused]] int LLVMFuzzerTestOneInput(const uint8_t *data, + std::size_t size) { + return 0; +} } inline __attribute__((always_inline)) void *idToPc(jint id) { |