warning in main_cp.c

Joel Sherrill joel.sherrill at oarcorp.com
Sun Oct 12 21:07:37 UTC 2014


On 10/12/2014 4:06 PM, Chris Johns wrote:
> On 13/10/2014 7:07 am, Joel Sherrill wrote:
>> Hi
>>
>> I assume Chris knows the root cause of this. :)
>>
>> arm-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I..
>> -I../../cpukit/../../../altcycv_devkit/lib/include
>> -I../../../../../../rtems/c/src/../../cpukit/libmisc/shell
>> -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O2
>> -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
>> -Wstrict-prototypes -Wnested-externs -MT shell/libshell_a-main_echo.o
>> -MD -MP -MF shell/.deps/libshell_a-main_echo.Tpo -c -o
>> shell/libshell_a-main_echo.o `test -f 'shell/main_echo.c' || echo
>> '../../../../../../rtems/c/src/../../cpukit/libmisc/'`shell/main_echo.c
>> ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/main_cp.c:108:1: warning:
>> 'rtems_shell_cp_exit' defined but not used [-Wunused-function]
>>
> It can be removed. There does not look like there is any calls to exit 
> in the cp command. It is using errx.
Thank you. I will include this in my next round of patches.
> Chris

-- 
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 devel mailing list