mirror of https://github.com/ARMmbed/mbed-os.git
Fix implicit declaration of function 'atexit'
Silence the following compiler warning: [Warning] RTX_CM_lib.h@807,5: implicit declaration of function 'atexit' [-Wimplicit-function-declaration] Signed-off-by: Tony Wu <tonywu@realtek.com>pull/2544/head
parent
f3d652bbe0
commit
6157563ae3
|
@ -329,6 +329,7 @@ __asm void __rt_entry (void) {
|
|||
|
||||
#elif defined (__GNUC__)
|
||||
|
||||
extern int atexit(void (*func)(void));
|
||||
extern void __libc_fini_array(void);
|
||||
extern void __libc_init_array (void);
|
||||
extern int main(int argc, char **argv);
|
||||
|
|
|
@ -485,6 +485,7 @@ __asm void __rt_entry (void) {
|
|||
#endif
|
||||
|
||||
#elif defined (__GNUC__)
|
||||
extern int atexit(void (*func)(void));
|
||||
extern void __libc_fini_array(void);
|
||||
extern void __libc_init_array (void);
|
||||
extern int main(int argc, char **argv);
|
||||
|
|
|
@ -789,6 +789,7 @@ static osMutexId malloc_mutex_id;
|
|||
osMutexDef(env_mutex);
|
||||
static osMutexId env_mutex_id;
|
||||
|
||||
extern int atexit(void (*func)(void));
|
||||
extern void __libc_fini_array(void);
|
||||
extern void __libc_init_array (void);
|
||||
extern int main(int argc, char **argv);
|
||||
|
|
Loading…
Reference in New Issue