Useless variable in_CPU_Context_Initialize() in cpukit/score/cpu/sparc/cpu.c
Joel Sherrill
joel.sherrill at OARcorp.com
Wed Jun 11 16:10:18 UTC 2008
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
More information about the users
mailing list