Skip to content

Commit fd333c5

Browse files
committed
Fix compiler warnings
1 parent bf1742a commit fd333c5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
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
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,12 @@ extern int __wrap_asprintf(char **strp, const char *fmt, ...) {
9292
return -1;
9393
}
9494

95+
#pragma clang diagnostic push
96+
#pragma clang diagnostic ignored "-Wformat-nonliteral"
9597
va_start(ap, fmt);
9698
r = vasprintf(strp, fmt, ap);
9799
va_end(ap);
100+
#pragma clang diagnostic pop
98101

99102
return r;
100103
}

0 commit comments

Comments
 (0)