Re: cppcheck bugs

2010-04-20 Thread Dave Korn
On 20/04/2010 15:06, Csaba Raduly wrote: > On Tue, Apr 20, 2010 at 2:30 PM, Dave Korn wrote: >> On 19/04/2010 22:16, Martin Ettl wrote: >>> I used cppcheck >>> [../machine/mips/strncpy.c:205] >> Uhh, why is it telling us about the MIPS-only version of strncpy in newlib >> that we don't even compi

Re: cppcheck bugs

2010-04-20 Thread Csaba Raduly
On Tue, Apr 20, 2010 at 2:30 PM, Dave Korn wrote: > On 19/04/2010 22:16, Martin Ettl wrote: >> I used cppcheck >> [../machine/mips/strncpy.c:205] > >  Uhh, why is it telling us about the MIPS-only version of strncpy in newlib > that we don't even compile in? > AIUI, that's because cppcheck tries

Re: cppcheck bugs

2010-04-20 Thread Dave Korn
On 19/04/2010 22:16, Martin Ettl wrote: > Hello, > > you ever run a static code analysis tool on cygwin sources. I have done > that! I used cppcheck > (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page) > and got the following SEVERE warning messages: Now you know why peo

cppcheck bugs

2010-04-19 Thread Martin Ettl
Hello, you ever run a static code analysis tool on cygwin sources. I have done that! I used cppcheck (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page) and got the following SEVERE warning messages: [fgetws.c:137]: (Error) Array index -1 corresponds with 4294967295, whi

cppcheck bugs

2010-04-19 Thread Martin Ettl
Hello, you ever run a static code analysis tool on cygwin sources. I have done that! I used cppcheck (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page) and got the following SEVERE warning messages: [fgetws.c:137]: (Error) Array index -1 corresponds with 4294967295, whi