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