diff options
| author | hathach <[email protected]> | 2013-04-25 11:55:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-25 11:55:24 +0700 |
| commit | 92994c8192afa29ddb6d7fb109e20bf7872efcec (patch) | |
| tree | 142046c8774be84d5482083a0cfb1f9b21a183ac /tinyusb/osal/osal_freeRTOS.h | |
| parent | e9dbce5f1bfe193884293e7fb555f963c7f2e649 (diff) | |
add attribute warn unused result for osal_create_* function
taskify keyboard_app mouse_app & led_blinking
Diffstat (limited to 'tinyusb/osal/osal_freeRTOS.h')
| -rw-r--r-- | tinyusb/osal/osal_freeRTOS.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/osal/osal_freeRTOS.h b/tinyusb/osal/osal_freeRTOS.h index cd92812cb..4dd3a67ca 100644 --- a/tinyusb/osal/osal_freeRTOS.h +++ b/tinyusb/osal/osal_freeRTOS.h @@ -87,9 +87,9 @@ typedef struct { .code = task_code , \ .stack_depth = task_stack_depth , \ .prio = task_prio \ - }; + } -static inline tusb_error_t osal_task_create(osal_task_t *task) ATTR_ALWAYS_INLINE; +static inline tusb_error_t osal_task_create(osal_task_t *task) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE; static inline tusb_error_t osal_task_create(osal_task_t *task) { return pdPASS == xTaskCreate(task->code, (signed portCHAR const *) task->name, task->stack_depth, NULL, task->prio, NULL) ? |
