Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dacav committed Dec 17, 2024
1 parent 5df0186 commit bcdaac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fuzz/fuzz_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ static void consume(const void *body, size_t len) {

while (len--)
x ^= *ptr++;

(void)x;
}

static int conv_cb(int num_msg, const struct pam_message **msg,
Expand Down
3 changes: 3 additions & 0 deletions fuzz/wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ extern int __wrap_asprintf(char **strp, const char *fmt, ...) {
return -1;
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-nonliteral"
va_start(ap, fmt);
r = vasprintf(strp, fmt, ap);
va_end(ap);
#pragma clang diagnostic pop

return r;
}
Expand Down

0 comments on commit bcdaac7

Please sign in to comment.