<p>I dislike this prototype in a .c file especially just to satisfy compiler warnings.</p>
<div class="gmail_quote">On Sep 22, 2013 11:52 AM, "Joel Sherrill" <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Module:    rtems<br>
Branch:    master<br>
Commit:    d2c5bff7dc5a93d5369e83e5c412c3b424dee781<br>
Changeset: <a href="http://git.rtems.org/rtems/commit/?id=d2c5bff7dc5a93d5369e83e5c412c3b424dee781" target="_blank">http://git.rtems.org/rtems/commit/?id=d2c5bff7dc5a93d5369e83e5c412c3b424dee781</a><br>
<br>
Author:    Joel Sherrill <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>><br>
Date:      Sun Sep 22 10:51:36 2013 -0500<br>
<br>
leon3/.../ckinit.c: Fix missing prototype warnings<br>
<br>
---<br>
<br>
 c/src/lib/libbsp/sparc/leon3/clock/ckinit.c |    6 +++++-<br>
 1 files changed, 5 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c<br>
index 79f8864..8aa0af3 100644<br>
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c<br>
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c<br>
@@ -37,7 +37,6 @@<br>
   #define LEON3_CLOCK_INDEX 0<br>
 #endif<br>
<br>
-<br>
 volatile struct gptimer_regs *LEON3_Timer_Regs = 0;<br>
 static int clkirq;<br>
<br>
@@ -94,6 +93,11 @@ static int clkirq;<br>
     LEON3_Timer_Regs->timer[LEON3_CLOCK_INDEX].ctrl = 0; \<br>
   } while (0)<br>
<br>
+/*<br>
+ *  Prototype to avoid warnings and body of get nanoseconds since last tick<br>
+ */<br>
+uint32_t bsp_clock_nanoseconds_since_last_tick(void);<br>
+<br>
 uint32_t bsp_clock_nanoseconds_since_last_tick(void)<br>
 {<br>
   uint32_t clicks;<br>
<br>
_______________________________________________<br>
rtems-vc mailing list<br>
<a href="mailto:rtems-vc@rtems.org">rtems-vc@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-vc" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-vc</a><br>
</blockquote></div>