Prevent unused variable if passed to STUBL
}
/** non-fatal stub implementation of wayland interface method. */
-#define STUBL(x) wlc_log(WLC_LOG_WARN, "%s @ line %d is not implemented", __PRETTY_FUNCTION__, __LINE__)
+#define STUBL(x) { \
+ (void)x; \
+ wlc_log(WLC_LOG_WARN, "%s @ line %d is not implemented", __PRETTY_FUNCTION__, __LINE__); \
+}
/** length macro for statically initialized data. */
#define LENGTH(x) (sizeof(x) / sizeof(x)[0])
