diff --git a/frameworks/deviceauth_lite/test/fuzztest/registelog_fuzzer/registelog_fuzzer.cpp b/frameworks/deviceauth_lite/test/fuzztest/registelog_fuzzer/registelog_fuzzer.cpp index 7fa8cb5a..657f30ec 100644 --- a/frameworks/deviceauth_lite/test/fuzztest/registelog_fuzzer/registelog_fuzzer.cpp +++ b/frameworks/deviceauth_lite/test/fuzztest/registelog_fuzzer/registelog_fuzzer.cpp @@ -35,6 +35,8 @@ namespace OHOS { bool RegisteLogFuzz(const uint8_t *data, size_t size) { + (void)data; + (void)size; struct log_func_group logFunc = { TestLogd, TestLogd, diff --git a/test/fuzztest/devauthcb_fuzzer/devauthcb_fuzzer.cpp b/test/fuzztest/devauthcb_fuzzer/devauthcb_fuzzer.cpp index a7ff34ae..a731fada 100644 --- a/test/fuzztest/devauthcb_fuzzer/devauthcb_fuzzer.cpp +++ b/test/fuzztest/devauthcb_fuzzer/devauthcb_fuzzer.cpp @@ -59,6 +59,8 @@ static void NativeTokenSet(const char *procName) bool FuzzDoCallback(const uint8_t* data, size_t size) { + (void)data; + (void)size; NativeTokenSet("device_manager"); StubDevAuthCb *remoteObj = new(std::nothrow) StubDevAuthCb(); if (remoteObj == nullptr) {