[PATCH 15/52] arm/gdbarmsim/irq/irq.c: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 8 19:16:06 UTC 2014


---
 c/src/lib/libbsp/arm/gdbarmsim/irq/irq.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/c/src/lib/libbsp/arm/gdbarmsim/irq/irq.c b/c/src/lib/libbsp/arm/gdbarmsim/irq/irq.c
index 1d373c8..79665b4 100644
--- a/c/src/lib/libbsp/arm/gdbarmsim/irq/irq.c
+++ b/c/src/lib/libbsp/arm/gdbarmsim/irq/irq.c
@@ -28,6 +28,12 @@
 #include <bsp/irq-generic.h>
 #include <bsp/linker-symbols.h>
 
+/*
+ *  Prototypes
+ */
+void lpc24xx_irq_set_priority(rtems_vector_number, unsigned);
+unsigned lpc24xx_irq_get_priority(rtems_vector_number);
+
 static inline bool lpc24xx_irq_is_valid(rtems_vector_number vector)
 {
   return vector <= BSP_INTERRUPT_VECTOR_MAX;
@@ -39,6 +45,7 @@ void lpc24xx_irq_set_priority(rtems_vector_number vector, unsigned priority)
 
 unsigned lpc24xx_irq_get_priority(rtems_vector_number vector)
 {
+  return 0; /* bogus value to avoid warning */
 }
 
 #ifdef ARM_MULTILIB_ARCH_V4
-- 
1.9.3




More information about the devel mailing list