[rtems commit] libbsp/v850/shared/crt1.c: Remove warnings

Joel Sherrill joel at rtems.org
Thu Oct 9 15:03:36 UTC 2014


Module:    rtems
Branch:    master
Commit:    0dae39033ed0113ec428b8e867caa18a1b882bde
Changeset: http://git.rtems.org/rtems/commit/?id=0dae39033ed0113ec428b8e867caa18a1b882bde

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Oct  7 10:00:45 2014 -0500

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

---

 c/src/lib/libbsp/v850/shared/crt1.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/v850/shared/crt1.c b/c/src/lib/libbsp/v850/shared/crt1.c
index 18c240b..02a8a7f 100644
--- a/c/src/lib/libbsp/v850/shared/crt1.c
+++ b/c/src/lib/libbsp/v850/shared/crt1.c
@@ -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) ();
 
     }
 }



More information about the vc mailing list