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:
committed by
Michael Stapelberg
parent
ac74a63662
commit
9c15b9504e
@ -30,7 +30,7 @@ char *get_exe_path(const char *argv0) {
|
||||
#endif
|
||||
ssize_t linksize;
|
||||
|
||||
while ((linksize = readlink(exepath, destpath, destpath_size)) == destpath_size) {
|
||||
while ((linksize = readlink(exepath, destpath, destpath_size)) == (ssize_t)destpath_size) {
|
||||
destpath_size = destpath_size * 2;
|
||||
destpath = srealloc(destpath, destpath_size);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ int ipc_send_message(int sockfd, const uint32_t message_size,
|
||||
.type = message_type
|
||||
};
|
||||
|
||||
int sent_bytes = 0;
|
||||
size_t sent_bytes = 0;
|
||||
int n = 0;
|
||||
|
||||
/* This first loop is basically unnecessary. No operating system has
|
||||
|
Reference in New Issue
Block a user