Fuzzers: Cast unused smart-pointer return values to void

This commit is contained in:
Sam Atkins 2021-12-02 12:49:32 +00:00 committed by Andreas Kling
parent f3d8f80e9c
commit 16e5f24e64
Notes: sideshowbarker 2024-07-17 23:09:09 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -13,6 +13,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
auto gemini = StringView(static_cast<const unsigned char*>(data), size);
Gemini::Document::parse(gemini, {});
(void)Gemini::Document::parse(gemini, {});
return 0;
}

View file

@ -13,6 +13,6 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
auto markdown = StringView(static_cast<const unsigned char*>(data), size);
Markdown::Document::parse(markdown);
(void)Markdown::Document::parse(markdown);
return 0;
}

View file

@ -13,6 +13,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
auto source = StringView(static_cast<const unsigned char*>(data), size);
Shell::Parser parser(source);
parser.parse();
(void)parser.parse();
return 0;
}