Skip to content

Commit

Permalink
fuzz: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dacav committed Dec 17, 2024
1 parent 785678f commit a6e50d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
4 changes: 3 additions & 1 deletion fuzz/wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <openssl/ec.h>
#include <fido.h>

#include "debug.h"
#include "drop_privs.h"
#include "fuzz/fuzz.h"

Expand Down Expand Up @@ -82,7 +83,8 @@ extern ssize_t __wrap_read(int fildes, void *buf, size_t nbyte) {
return __real_read(fildes, buf, nbyte);
}

extern int __wrap_asprintf(char **strp, const char *fmt, ...);
extern int __wrap_asprintf(char **strp, const char *fmt, ...)
ATTRIBUTE_FORMAT(printf, 2, 3);
extern int __wrap_asprintf(char **strp, const char *fmt, ...) {
va_list ap;
int r;
Expand Down

0 comments on commit a6e50d0

Please sign in to comment.