Xinqi Bao's Git

Mark unused parameters, fix compiler warnings
[slstatus.git] / util.h
diff --git a/util.h b/util.h
index e90c29d..53e4104 100644 (file)
--- a/util.h
+++ b/util.h
@@ -3,5 +3,7 @@ extern char buf[1024];
 
 #define LEN(x) (sizeof (x) / sizeof *(x))
 
+#define UNUSED(x) (void)x
+
 const char *bprintf(const char *fmt, ...);
 int pscanf(const char *path, const char *fmt, ...);