From b7f0da1493aa1ef46033addc2c719bf61f5f0d7c Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 11 Sep 2015 17:33:04 +0200 Subject: [PATCH] Fixed C99 Compiler warning --- src/window.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/window.h b/src/window.h index 8fe9e08..84697cf 100644 --- a/src/window.h +++ b/src/window.h @@ -59,9 +59,11 @@ struct frag_buffer { }; #ifdef WINDOW_DEBUG -#define DEBUG(msg, ...) fprintf(stderr, "[WINDOW-DEBUG] (%s:%d) " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__) +#define DEBUG(...) fprintf(stderr, "[WINDOW-DEBUG] (%s:%d)", __FILE__, __LINE__);\ + fprintf(stderr, __VA_ARGS__);\ + fprintf(stderr, "\n") #else -#define DEBUG(msg, ...) +#define DEBUG(...) #endif #define AFTER(w, o) ((w->window_start + o) % w->length)