mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 13:46:26 +08:00
libbsp/v850/shared/crt1.c: Remove warnings
This commit is contained in:
@@ -1,21 +1,25 @@
|
||||
/*
|
||||
* From newlib ==> libc/sys/sysnecv850/crt1.c
|
||||
*
|
||||
* Obtained newlib 29 May 2012
|
||||
* Obtained from newlib: 29 May 2012
|
||||
* Warnings fixed: 7 October 2014
|
||||
*/
|
||||
void __main ()
|
||||
|
||||
void __main(void);
|
||||
typedef void (*pfunc) (void);
|
||||
extern pfunc __ctors[];
|
||||
extern pfunc __ctors_end[];
|
||||
|
||||
void __main(void)
|
||||
{
|
||||
static int initialized;
|
||||
if (! initialized)
|
||||
{
|
||||
typedef void (*pfunc) ();
|
||||
extern pfunc __ctors[];
|
||||
extern pfunc __ctors_end[];
|
||||
pfunc *p;
|
||||
|
||||
initialized = 1;
|
||||
for (p = __ctors_end; p > __ctors; )
|
||||
(*--p) ();
|
||||
(*--p) ();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user