[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Useless variable in_CPU_Context_Initialize() in cpukit/score/cpu/sparc/cpu.c
- Date: Wed, 11 Jun 2008 11:10:18 -0500
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: Useless variable in_CPU_Context_Initialize() in cpukit/score/cpu/sparc/cpu.c
Catalin Morosan wrote:
> Hi.
>
> I found a variable declared in _CPU_Context_Initialize() in
> cpukit/score/cpu/sparc/cpu.c that is assigned but never used.
>
> uint32_t the_size;
> .....
> the_size = size & ~(CPU_STACK_ALIGNMENT - 1);
>
Hmmm.. Indeed that is the case and there is no warning
in the automated build logs even though this file
is compiled with -Wall. Curious.
I will remove it.
Thanks.
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985