@@ -81,6 +81,7 @@ sys_mutex_lock(sys_mutex_t *pxMutex)
81
81
BaseType_t ret = xSemaphoreTake (* pxMutex , portMAX_DELAY );
82
82
83
83
LWIP_ASSERT ("failed to take the mutex" , ret == pdTRUE );
84
+ (void )ret ;
84
85
}
85
86
86
87
/**
@@ -94,6 +95,7 @@ sys_mutex_unlock(sys_mutex_t *pxMutex)
94
95
BaseType_t ret = xSemaphoreGive (* pxMutex );
95
96
96
97
LWIP_ASSERT ("failed to give the mutex" , ret == pdTRUE );
98
+ (void )ret ;
97
99
}
98
100
99
101
/**
@@ -133,6 +135,7 @@ sys_sem_new(sys_sem_t *sem, u8_t count)
133
135
if (count == 1 ) {
134
136
BaseType_t ret = xSemaphoreGive (* sem );
135
137
LWIP_ASSERT ("sys_sem_new: initial give failed" , ret == pdTRUE );
138
+ (void )ret ;
136
139
}
137
140
138
141
return ERR_OK ;
@@ -150,6 +153,7 @@ sys_sem_signal(sys_sem_t *sem)
150
153
/* queue full is OK, this is a signal only... */
151
154
LWIP_ASSERT ("sys_sem_signal: sane return value" ,
152
155
(ret == pdTRUE ) || (ret == errQUEUE_FULL ));
156
+ (void )ret ;
153
157
}
154
158
155
159
/*-----------------------------------------------------------------------------------*/
@@ -246,6 +250,7 @@ sys_mbox_post(sys_mbox_t *mbox, void *msg)
246
250
{
247
251
BaseType_t ret = xQueueSendToBack ((* mbox )-> os_mbox , & msg , portMAX_DELAY );
248
252
LWIP_ASSERT ("mbox post failed" , ret == pdTRUE );
253
+ (void )ret ;
249
254
}
250
255
251
256
/**
@@ -385,6 +390,8 @@ sys_mbox_free(sys_mbox_t *mbox)
385
390
vQueueDelete ((* mbox )-> os_mbox );
386
391
free (* mbox );
387
392
* mbox = NULL ;
393
+
394
+ (void )msgs_waiting ;
388
395
}
389
396
390
397
/**
0 commit comments