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