shithub: drawterm

Download patch

ref: 19b1044a6ab5a3f3a6c134aa3ef2e19e46c78149
parent: 41806113ac664e7c722bc18a6158e7837f577018
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Feb 6 13:44:47 EST 2023

make USED() macro cast to void, so it works with non-scalars

--- a/include/lib.h
+++ b/include/lib.h
@@ -52,7 +52,7 @@
 
 #define	nelem(x)	(sizeof(x)/sizeof((x)[0]))
 #define SET(x)		((x)=0)
-#define	USED(x)		if(x);else
+#define	USED(x)		(void)(x)
 
 enum
 {