Fix clang -Wextra except -Wunused-parameter.

Cleared all warnings that occur when passing
CFLAGS="-Wall -Wextra -Wno-unused-parameter" to make using clang 3.3 on
Linux x86-64.
This commit is contained in:
Peter Boström
2013-12-25 20:01:37 +01:00
committed by Michael Stapelberg
parent ac74a63662
commit 9c15b9504e
23 changed files with 35 additions and 35 deletions

View File

@ -224,7 +224,7 @@ char *store_restart_layout(void) {
return NULL;
}
int written = 0;
size_t written = 0;
while (written < length) {
int n = write(fd, payload + written, length - written);
/* TODO: correct error-handling */
@ -242,9 +242,9 @@ char *store_restart_layout(void) {
}
written += n;
#if YAJL_MAJOR >= 2
printf("written: %d of %zd\n", written, length);
DLOG("written: %zd of %zd\n", written, length);
#else
printf("written: %d of %d\n", written, length);
DLOG("written: %d of %d\n", written, length);
#endif
}
close(fd);