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