Current Warnings Report

Joel Sherrill joel.sherrill at oarcorp.com
Thu Sep 11 12:55:48 UTC 2014


On 9/11/2014 5:21 AM, Sebastian Huber wrote:
> The code is awful, but
>
> c/src/../../cpukit/libfs/src/dosfs/msdos_conv.c:452:48: warning: 'c' may be 
> used uninitialized in this function [-Wmaybe-uninitialized]
>
> is a false positive.  On which target and GCC version do you get this warning?
>
$ grep "cpukit/libfs/src/dosfs/msdos_conv.c:452" log/*
log/arm-rtl22xx.log:../../../../../../rtems/c/src/../../cpukit/libfs/src/dosfs/msdos_conv.c:452:48:
warning: 'c' may be used uninitialized in this function [-Wm

Interesting that it is only one BSP.

What is different about the compilation flags for that BSP? And a quick
check
pointed out that it uses -mapcs-frame which no other ARM BSP appears to
use. Could that be it?

And asking here.. why does it use that? What is the impact of removing it?

Sounds like a gcc PR but our fix may be to review the BSP CFLAGS and reduce
them. It is a very long list and I question them.

-- 
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