mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add macro UNUSED to eliminate warnings about variables that are set to unused values
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user