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
@ -250,7 +250,7 @@ static void vlog(const bool print, const char *fmt, va_list args) {
|
||||
|
||||
/* If there is no space for the current message in the ringbuffer, we
|
||||
* need to wrap and write to the beginning again. */
|
||||
if (len >= (logbuffer_size - (logwalk - logbuffer))) {
|
||||
if (len >= (size_t)(logbuffer_size - (logwalk - logbuffer))) {
|
||||
loglastwrap = logwalk;
|
||||
logwalk = logbuffer + sizeof(i3_shmlog_header);
|
||||
store_log_markers();
|
||||
|
Reference in New Issue
Block a user