Skip to content

Commit ba1fb88

Browse files
dacavLDVG
authored andcommitted
fuzz: Fix compiler warnings
1 parent 4ae31ac commit ba1fb88

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

fuzz/fuzz_auth.c

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ static void consume(const void *body, size_t len) {
164164

165165
while (len--)
166166
x ^= *ptr++;
167+
168+
(void) x;
167169
}
168170

169171
static int conv_cb(int num_msg, const struct pam_message **msg,

fuzz/wrap.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <openssl/ec.h>
1616
#include <fido.h>
1717

18+
#include "debug.h"
1819
#include "drop_privs.h"
1920
#include "fuzz/fuzz.h"
2021

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

85-
extern int __wrap_asprintf(char **strp, const char *fmt, ...);
86+
extern int __wrap_asprintf(char **strp, const char *fmt, ...)
87+
ATTRIBUTE_FORMAT(printf, 2, 3);
8688
extern int __wrap_asprintf(char **strp, const char *fmt, ...) {
8789
va_list ap;
8890
int r;

0 commit comments

Comments
 (0)