[PATCH 21/54] nios2/nios2_iss/clock/clock.c: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Mon Oct 13 15:37:05 UTC 2014


---
 c/src/lib/libbsp/nios2/nios2_iss/clock/clock.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/nios2/nios2_iss/clock/clock.c b/c/src/lib/libbsp/nios2/nios2_iss/clock/clock.c
index d5be1fc..939af651 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/clock/clock.c
+++ b/c/src/lib/libbsp/nios2/nios2_iss/clock/clock.c
@@ -21,17 +21,18 @@
 #define Clock_driver_support_install_isr(_new, _old) \
   do { _old = (rtems_isr_entry)set_vector(_new, CLOCK_VECTOR, 1); } while(0)
 
-
 /*
  * Turn off the clock
  */
 #define Clock_driver_support_shutdown_hardware() \
-  do { CLOCK_REGS->control = ALTERA_AVALON_TIMER_CONTROL_STOP_MSK; } while(0)
+  do { \
+    CLOCK_REGS->control = ALTERA_AVALON_TIMER_CONTROL_STOP_MSK; \
+  } while (0)
 
 /*
  * Set up the clock hardware
  */
-void Clock_driver_support_initialize_hardware(void)
+static void Clock_driver_support_initialize_hardware(void)
 {
   uint32_t period;
 
-- 
1.9.3




More information about the devel mailing list