@@ -258,6 +258,7 @@ osStatus osThreadTerminate (osThreadId thread_id)
258
258
vTaskDelete (thread_id );
259
259
return osOK ;
260
260
#else
261
+ (void ) thread_id ;
261
262
return osErrorOS ;
262
263
#endif
263
264
}
@@ -287,6 +288,8 @@ osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority)
287
288
vTaskPrioritySet (thread_id , makeFreeRtosPriority (priority ));
288
289
return osOK ;
289
290
#else
291
+ (void ) thread_id ;
292
+ (void ) priority ;
290
293
return osErrorOS ;
291
294
#endif
292
295
}
@@ -309,6 +312,7 @@ osPriority osThreadGetPriority (osThreadId thread_id)
309
312
return makeCmsisPriority (uxTaskPriorityGet (thread_id ));
310
313
}
311
314
#else
315
+ (void ) thread_id ;
312
316
return osPriorityError ;
313
317
#endif
314
318
}
@@ -390,6 +394,9 @@ osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void
390
394
#endif
391
395
392
396
#else
397
+ (void ) timer_def ;
398
+ (void ) type ;
399
+ (void ) argument ;
393
400
return NULL ;
394
401
#endif
395
402
}
@@ -429,6 +436,8 @@ osStatus osTimerStart (osTimerId timer_id, uint32_t millisec)
429
436
}
430
437
431
438
#else
439
+ (void ) timer_id ;
440
+ (void ) millisec ;
432
441
result = osErrorOS ;
433
442
#endif
434
443
return result ;
@@ -458,6 +467,7 @@ osStatus osTimerStop (osTimerId timer_id)
458
467
}
459
468
}
460
469
#else
470
+ (void ) timer_id ;
461
471
result = osErrorOS ;
462
472
#endif
463
473
return result ;
@@ -485,6 +495,7 @@ osStatus result = osOK;
485
495
}
486
496
487
497
#else
498
+ (void ) timer_id ;
488
499
result = osErrorOS ;
489
500
#endif
490
501
@@ -609,9 +620,11 @@ osMutexId osMutexCreate (const osMutexDef_t *mutex_def)
609
620
#elif ( configSUPPORT_STATIC_ALLOCATION == 1 )
610
621
return xSemaphoreCreateMutexStatic ( mutex_def -> controlblock );
611
622
#else
612
- return xSemaphoreCreateMutex ();
623
+ (void ) mutex_def ;
624
+ return xSemaphoreCreateMutex ();
613
625
#endif
614
626
#else
627
+ (void ) mutex_def ;
615
628
return NULL ;
616
629
#endif
617
630
}
@@ -753,6 +766,7 @@ osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t
753
766
#endif
754
767
}
755
768
#else // configSUPPORT_STATIC_ALLOCATION == 0 && configSUPPORT_DYNAMIC_ALLOCATION == 1
769
+ (void ) semaphore_def ;
756
770
osSemaphoreId sema ;
757
771
758
772
if (count == 1 ) {
@@ -923,6 +937,7 @@ osPoolId osPoolCreate (const osPoolDef_t *pool_def)
923
937
return thePool ;
924
938
925
939
#else
940
+ (void ) pool_def ;
926
941
return NULL ;
927
942
#endif
928
943
}
@@ -1200,6 +1215,8 @@ osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id)
1200
1215
1201
1216
return * (queue_def -> cb );
1202
1217
#else
1218
+ (void ) queue_def ;
1219
+ (void ) thread_id ;
1203
1220
return NULL ;
1204
1221
#endif
1205
1222
}
@@ -1436,6 +1453,7 @@ osStatus osThreadSuspend (osThreadId thread_id)
1436
1453
1437
1454
return osOK ;
1438
1455
#else
1456
+ (void ) thread_id ;
1439
1457
return osErrorResource ;
1440
1458
#endif
1441
1459
}
@@ -1461,6 +1479,7 @@ osStatus osThreadResume (osThreadId thread_id)
1461
1479
}
1462
1480
return osOK ;
1463
1481
#else
1482
+ (void ) thread_id ;
1464
1483
return osErrorResource ;
1465
1484
#endif
1466
1485
}
@@ -1542,6 +1561,8 @@ osStatus osThreadList (uint8_t *buffer)
1542
1561
{
1543
1562
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS == 1 ) )
1544
1563
vTaskList ((char * )buffer );
1564
+ #else
1565
+ (void ) buffer ;
1545
1566
#endif
1546
1567
return osOK ;
1547
1568
}
@@ -1649,9 +1670,11 @@ osMutexId osRecursiveMutexCreate (const osMutexDef_t *mutex_def)
1649
1670
#elif ( configSUPPORT_STATIC_ALLOCATION == 1 )
1650
1671
return xSemaphoreCreateRecursiveMutexStatic ( mutex_def -> controlblock );
1651
1672
#else
1673
+ (void ) mutex_def ;
1652
1674
return xSemaphoreCreateRecursiveMutex ();
1653
1675
#endif
1654
1676
#else
1677
+ (void ) mutex_def ;
1655
1678
return NULL ;
1656
1679
#endif
1657
1680
}
@@ -1672,6 +1695,7 @@ osStatus osRecursiveMutexRelease (osMutexId mutex_id)
1672
1695
}
1673
1696
return result ;
1674
1697
#else
1698
+ (void ) mutex_id ;
1675
1699
return osErrorResource ;
1676
1700
#endif
1677
1701
}
@@ -1712,6 +1736,8 @@ osStatus osRecursiveMutexWait (osMutexId mutex_id, uint32_t millisec)
1712
1736
}
1713
1737
return osOK ;
1714
1738
#else
1739
+ (void ) mutex_id ;
1740
+ (void ) millisec ;
1715
1741
return osErrorResource ;
1716
1742
#endif
1717
1743
}
0 commit comments