change log for rtems (2011-07-27)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Jul 27 05:10:12 UTC 2011


 *strauman*:
2011-07-26  Till Straumann <strauman at slac.stanford.edu>

	* shared/irq/openpic_i8259_irq.c: silenced compiler warnings.

M  1.265  c/src/lib/libbsp/powerpc/ChangeLog
M   1.13  c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c

diff -u rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.264 rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.265
--- rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.264	Thu Jul 21 19:39:49 2011
+++ rtems/c/src/lib/libbsp/powerpc/ChangeLog	Tue Jul 26 23:21:25 2011
@@ -1,3 +1,7 @@
+2011-07-26  Till Straumann <strauman at slac.stanford.edu>
+
+	* shared/irq/openpic_i8259_irq.c: silenced compiler warnings.
+	
 2011-07-21  Till Straumann <strauman at slac.stanford.edu>
 
 	* shared/motorola/motorola.c: removed

diff -u rtems/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c:1.12 rtems/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c:1.13
--- rtems/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c:1.12	Fri Jul 15 20:15:06 2011
+++ rtems/c/src/lib/libbsp/powerpc/shared/irq/openpic_i8259_irq.c	Tue Jul 26 23:21:25 2011
@@ -265,7 +265,11 @@
 #error "Configuration Error -- BSP with ISA + PCI IRQs MUST define BSP_PCI_ISA_BRIDGE_IRQ"
 #endif
 #else
-	rtems_panic("MUST have an OpenPIC if BSP has PCI IRQs but no ISA IRQs");
+	BSP_panic("MUST have an OpenPIC if BSP has PCI IRQs but no ISA IRQs");
+	/* BSP_panic() never returns but the 'return' statement silences
+	 * a compiler warning about 'irq' possibly being used w/o initialization.
+	 */
+	return -1;
 #endif
   }
 #endif



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110727/a2d1cc2a/attachment.html>


More information about the vc mailing list