Index: kernel/generic/include/lib/refcount.h
===================================================================
--- kernel/generic/include/lib/refcount.h	(revision 95d45482754feecb799113e94c59c7c41e44b029)
+++ kernel/generic/include/lib/refcount.h	(revision c7afdf7aeb7a9b267482b637a8124172e3357f16)
@@ -73,4 +73,5 @@
 	/* old < 0 indicates that the function is used incorrectly. */
 	assert(old >= 0);
+	(void) old;
 }
 
