msdos_conv.c warning - Re: Current Warnings Report

2014-09-11 Thread Joel Sherrill
Hi Replying to myself. I grabbed the preprocessed source and used shorter command lines on it. It is -Os vs -O2 on multiple but not all targets. [joel@rtbf64a libfs]$ arm-rtems4.11-gcc -Wall -O2 -c unused.c [joel@rtbf64a libfs]$ arm-rtems4.11-gcc -Wall -Os -c unused.c ../../../../../../rtems/c

Re: Current Warnings Report

2014-09-11 Thread Joel Sherrill
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? >

Re: Current Warnings Report

2014-09-11 Thread Sebastian Huber
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? -- Sebastian Huber, embedded brains GmbH Address : Dor