]> git.sur5r.net Git - i3/i3/blobdiff - src/log.c
Fix clang -Wextra except -Wunused-parameter.
[i3/i3] / src / log.c
index 86f47b9acfa7c3c77362d587fce4cc73bfa8579b..5635278db6a67d1946fee808de647cd95417745a 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -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();