diff options
| author | Ha Thach <[email protected]> | 2021-10-19 13:27:53 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-19 13:27:53 +0700 |
| commit | 4bfab30c02279a0530e1a56f4a7c539f2d35a293 (patch) | |
| tree | 7af7c8ad0d57c693c44df71ebdab50e9b12a9e07 /src/osal | |
| parent | e927359d9c4ed90639dd2b8f7026a73574f8ca4b (diff) | |
| parent | 3485c82246ce17be1ca9649bb36dfc8b1782e593 (diff) | |
Merge pull request #1139 from hathach/release-0.12.00.12.0
update changelog and increase version for 0.12.0
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h index 28bdf479c..c8131d19d 100644 --- a/src/osal/osal.h +++ b/src/osal/osal.h @@ -67,6 +67,10 @@ typedef void (*osal_task_func_t)( void * ); // OSAL Porting API //--------------------------------------------------------------------+ +#if __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wredundant-decls" +#endif //------------- Semaphore -------------// static inline osal_semaphore_t osal_semaphore_create(osal_semaphore_def_t* semdef); static inline bool osal_semaphore_post(osal_semaphore_t sem_hdl, bool in_isr); @@ -84,6 +88,9 @@ static inline osal_queue_t osal_queue_create(osal_queue_def_t* qdef); static inline bool osal_queue_receive(osal_queue_t qhdl, void* data); static inline bool osal_queue_send(osal_queue_t qhdl, void const * data, bool in_isr); static inline bool osal_queue_empty(osal_queue_t qhdl); +#if __GNUC__ +#pragma GCC diagnostic pop +#endif #if 0 // TODO remove subtask related macros later // Sub Task |
