Changeset 0dae390 in rtems for c/src/lib/libbsp/v850/shared


Ignore:
Timestamp:
Oct 7, 2014, 3:00:45 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
56c6888
Parents:
780eab4
git-author:
Joel Sherrill <joel.sherrill@…> (10/07/14 15:00:45)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:54)
Message:

libbsp/v850/shared/crt1.c: Remove warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/v850/shared/crt1.c

    r780eab4 r0dae390  
    22 * From newlib ==> libc/sys/sysnecv850/crt1.c
    33 *
    4  * Obtained newlib 29 May 2012
     4 * Obtained from newlib: 29 May 2012
     5 * Warnings fixed: 7 October 2014
    56 */
    6 void __main ()
     7
     8void __main(void);
     9typedef void (*pfunc) (void);
     10extern pfunc __ctors[];
     11extern pfunc __ctors_end[];
     12
     13void __main(void)
    714{
    815  static int initialized;
    916  if (! initialized)
    1017    {
    11       typedef void (*pfunc) ();
    12       extern pfunc __ctors[];
    13       extern pfunc __ctors_end[];
    1418      pfunc *p;
    1519
    1620      initialized = 1;
    1721      for (p = __ctors_end; p > __ctors; )
    18         (*--p) ();
     22        (*--p) ();
    1923
    2024    }
Note: See TracChangeset for help on using the changeset viewer.