[rtems commit] gen5200/include/tm27.h: Fix prototype warning

Joel Sherrill joel at rtems.org
Mon Aug 13 15:44:44 UTC 2018


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Fri Aug 10 08:19:40 2018 -0500

gen5200/include/tm27.h: Fix prototype warning

---

 bsps/powerpc/gen5200/include/tm27.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bsps/powerpc/gen5200/include/tm27.h b/bsps/powerpc/gen5200/include/tm27.h
index ff43cc9..583aaa4 100644
--- a/bsps/powerpc/gen5200/include/tm27.h
+++ b/bsps/powerpc/gen5200/include/tm27.h
@@ -26,14 +26,14 @@
 
 #define MUST_WAIT_FOR_INTERRUPT 1
 
-void nullFunc() {}
+void nullFunc(void) {}
 
 static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
                                               0,
-                                              (rtems_irq_enable)nullFunc,
-                                              (rtems_irq_disable)nullFunc,
+                                              (rtems_irq_enable) nullFunc,
+                                              (rtems_irq_disable) nullFunc,
                                               (rtems_irq_is_enabled) nullFunc};
-void Install_tm27_vector(void (*_handler)())
+static void Install_tm27_vector(void (*_handler)(void))
 {
   clockIrqData.hdl = _handler;
   if (!BSP_install_rtems_irq_handler (&clockIrqData)) {



More information about the vc mailing list