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
@ -135,7 +135,7 @@ void display_running_version(void) {
|
||||
|
||||
sasprintf(&exepath, "/proc/%d/exe", getpid());
|
||||
|
||||
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);
|
||||
}
|
||||
@ -151,7 +151,7 @@ void display_running_version(void) {
|
||||
free(exepath);
|
||||
sasprintf(&exepath, "/proc/%s/exe", pid_from_atom);
|
||||
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user