[PATCH 09/15] Clean up compiler warnings

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 28 08:24:35 UTC 2012


On 11/27/2012 04:26 AM, Ric Claus wrote:
> diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
> index ed9e45e..40c519f 100644
> --- a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
> +++ b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
> @@ -138,24 +138,14 @@ void BSP_ask_for_reset(void)
>
>   void BSP_panic(char *s)
>   {
> -  rtems_interrupt_level level;
> -
> -  rtems_interrupt_disable(level);
> -
>     printk("\n%s PANIC %s\n", rtems_get_version_string(), s);
> -
>     BSP_ask_for_reset();
>   }
>
>
>   void _BSP_Fatal_error(unsigned int v)
>   {
> -  rtems_interrupt_level level;
> -
> -  rtems_interrupt_disable(level);
> -
>     printk("\n%s FATAL ERROR %x\n", rtems_get_version_string(), v);
> -
>     BSP_ask_for_reset();
>   }

Are you sure that you want to remove the interrupt disable here to fix a 
compiler warning?

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.





More information about the devel mailing list