lib/fuzzing: Tell the compiler we know we are ignoring errors in fuzz_reg_parse
authorAndrew Bartlett <abartlet@samba.org>
Wed, 4 Dec 2019 08:39:49 +0000 (21:39 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Dec 2019 07:50:28 +0000 (07:50 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/fuzzing/fuzz_reg_parse.c

index 36b1b6f84ac27386444b227b482c7359964cf3b2..a061cd6294ba9bd5466e46c1e6c0017674eee792 100644 (file)
@@ -34,14 +34,13 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
 int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len)
 {
        const reg_parse_callback cb = {0};
-       int ret;
 
        rewind(fp);
        (void)fwrite(buf, len, 1, fp);
        (void)fflush(fp);
        rewind(fp);
 
-       ret = reg_parse_fd(fileno(fp), &cb, "");
+       (void)reg_parse_fd(fileno(fp), &cb, "");
 
        return 0;
 }