Add macro UNUSED to eliminate warnings about variables that are set to unused values

This commit is contained in:
Gregory Nutt
2014-03-30 07:58:58 -06:00
parent 392031ff7c
commit 060b84240b
4 changed files with 10 additions and 3 deletions
+1
View File
@@ -391,6 +391,7 @@ static void usbmsc_scsi_wait(FAR struct usbmsc_dev_s *priv)
{
ret = sem_wait(&priv->thwaitsem);
DEBUGASSERT(ret == OK || errno == EINTR);
UNUSED(ret); /* Eliminate warnings when debug is off */
}
while (priv->thwaiting);