@@ -258,6 +258,7 @@ osStatus osThreadTerminate (osThreadId thread_id)
258258 vTaskDelete (thread_id );
259259 return osOK ;
260260#else
261+ (void ) thread_id ;
261262 return osErrorOS ;
262263#endif
263264}
@@ -287,6 +288,8 @@ osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority)
287288 vTaskPrioritySet (thread_id , makeFreeRtosPriority (priority ));
288289 return osOK ;
289290#else
291+ (void ) thread_id ;
292+ (void ) priority ;
290293 return osErrorOS ;
291294#endif
292295}
@@ -309,6 +312,7 @@ osPriority osThreadGetPriority (osThreadId thread_id)
309312 return makeCmsisPriority (uxTaskPriorityGet (thread_id ));
310313 }
311314#else
315+ (void ) thread_id ;
312316 return osPriorityError ;
313317#endif
314318}
@@ -390,6 +394,9 @@ osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void
390394#endif
391395
392396#else
397+ (void ) timer_def ;
398+ (void ) type ;
399+ (void ) argument ;
393400 return NULL ;
394401#endif
395402}
@@ -429,6 +436,8 @@ osStatus osTimerStart (osTimerId timer_id, uint32_t millisec)
429436 }
430437
431438#else
439+ (void ) timer_id ;
440+ (void ) millisec ;
432441 result = osErrorOS ;
433442#endif
434443 return result ;
@@ -458,6 +467,7 @@ osStatus osTimerStop (osTimerId timer_id)
458467 }
459468 }
460469#else
470+ (void ) timer_id ;
461471 result = osErrorOS ;
462472#endif
463473 return result ;
@@ -485,6 +495,7 @@ osStatus result = osOK;
485495 }
486496
487497#else
498+ (void ) timer_id ;
488499 result = osErrorOS ;
489500#endif
490501
@@ -609,9 +620,11 @@ osMutexId osMutexCreate (const osMutexDef_t *mutex_def)
609620#elif ( configSUPPORT_STATIC_ALLOCATION == 1 )
610621 return xSemaphoreCreateMutexStatic ( mutex_def -> controlblock );
611622#else
612- return xSemaphoreCreateMutex ();
623+ (void ) mutex_def ;
624+ return xSemaphoreCreateMutex ();
613625#endif
614626#else
627+ (void ) mutex_def ;
615628 return NULL ;
616629#endif
617630}
@@ -753,6 +766,7 @@ osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t
753766#endif
754767 }
755768#else // configSUPPORT_STATIC_ALLOCATION == 0 && configSUPPORT_DYNAMIC_ALLOCATION == 1
769+ (void ) semaphore_def ;
756770 osSemaphoreId sema ;
757771
758772 if (count == 1 ) {
@@ -923,6 +937,7 @@ osPoolId osPoolCreate (const osPoolDef_t *pool_def)
923937 return thePool ;
924938
925939#else
940+ (void ) pool_def ;
926941 return NULL ;
927942#endif
928943}
@@ -1200,6 +1215,8 @@ osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id)
12001215
12011216 return * (queue_def -> cb );
12021217#else
1218+ (void ) queue_def ;
1219+ (void ) thread_id ;
12031220 return NULL ;
12041221#endif
12051222}
@@ -1436,6 +1453,7 @@ osStatus osThreadSuspend (osThreadId thread_id)
14361453
14371454 return osOK ;
14381455#else
1456+ (void ) thread_id ;
14391457 return osErrorResource ;
14401458#endif
14411459}
@@ -1461,6 +1479,7 @@ osStatus osThreadResume (osThreadId thread_id)
14611479 }
14621480 return osOK ;
14631481#else
1482+ (void ) thread_id ;
14641483 return osErrorResource ;
14651484#endif
14661485}
@@ -1542,6 +1561,8 @@ osStatus osThreadList (uint8_t *buffer)
15421561{
15431562#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) )
15441563 vTaskList ((char * )buffer );
1564+ #else
1565+ (void ) buffer ;
15451566#endif
15461567 return osOK ;
15471568}
@@ -1649,9 +1670,11 @@ osMutexId osRecursiveMutexCreate (const osMutexDef_t *mutex_def)
16491670#elif ( configSUPPORT_STATIC_ALLOCATION == 1 )
16501671 return xSemaphoreCreateRecursiveMutexStatic ( mutex_def -> controlblock );
16511672#else
1673+ (void ) mutex_def ;
16521674 return xSemaphoreCreateRecursiveMutex ();
16531675#endif
16541676#else
1677+ (void ) mutex_def ;
16551678 return NULL ;
16561679#endif
16571680}
@@ -1672,6 +1695,7 @@ osStatus osRecursiveMutexRelease (osMutexId mutex_id)
16721695 }
16731696 return result ;
16741697#else
1698+ (void ) mutex_id ;
16751699 return osErrorResource ;
16761700#endif
16771701}
@@ -1712,6 +1736,8 @@ osStatus osRecursiveMutexWait (osMutexId mutex_id, uint32_t millisec)
17121736 }
17131737 return osOK ;
17141738#else
1739+ (void ) mutex_id ;
1740+ (void ) millisec ;
17151741 return osErrorResource ;
17161742#endif
17171743}
0 commit comments