Re: [PATCH] Fix CppCheck errors

2015-09-02 Thread Joel Sherrill
On 9/2/2015 8:43 AM, Martin Galvan wrote: On Wed, Sep 2, 2015 at 10:39 AM, Gedare Bloom wrote: Joel, Coordinate your patch/fixes with this patch. (I do prefer the separate patches that Joel gave. Small atomic commits are better.) Gedare I thought he'd seen this e-mail :) I agree that small

Re: [PATCH] Fix CppCheck errors

2015-09-02 Thread Martin Galvan
On Wed, Sep 2, 2015 at 10:39 AM, Gedare Bloom wrote: > Joel, > Coordinate your patch/fixes with this patch. (I do prefer the separate > patches that Joel gave. Small atomic commits are better.) > Gedare I thought he'd seen this e-mail :) I agree that small atomic commits are better. However, the

Re: [PATCH] Fix CppCheck errors

2015-09-02 Thread Gedare Bloom
Looks OK to me. >> >> On Tue, Sep 1, 2015 at 3:10 PM, Martin Galvan >> wrote: >>> This patch fixes the following CppCheck errors found throughout the code: >>> >>> [c/src/lib/libbsp/shared/umon/umon.h:21]: (error) Invalid number of >>> ch

Re: cppcheck errors

2015-09-02 Thread Gedare Bloom
On Tue, Sep 1, 2015 at 5:43 PM, Joel Sherrill wrote: > > > On 9/1/2015 2:10 PM, Martin Galvan wrote: >> >> Hi everyone! >> >> I just ran CppCheck again on a fresh clone of the git repo and saw the >> number of error reports was quite smaller than what I reported before. >> That's because my previo

Re: [PATCH] Fix CppCheck errors

2015-09-02 Thread Gedare Bloom
Apply to 4.11 and master On Wed, Sep 2, 2015 at 9:35 AM, Gedare Bloom wrote: > Looks OK to me. > > On Tue, Sep 1, 2015 at 3:10 PM, Martin Galvan > wrote: >> This patch fixes the following CppCheck errors found throughout the code: >> >> [c/src/lib/libbsp/shared/um

Re: [PATCH] Fix CppCheck errors

2015-09-02 Thread Gedare Bloom
Looks OK to me. On Tue, Sep 1, 2015 at 3:10 PM, Martin Galvan wrote: > This patch fixes the following CppCheck errors found throughout the code: > > [c/src/lib/libbsp/shared/umon/umon.h:21]: (error) Invalid number of character > ({) when these macros are defined: '__cplu

Re: cppcheck errors

2015-09-01 Thread Joel Sherrill
On 9/1/2015 2:10 PM, Martin Galvan wrote: Hi everyone! I just ran CppCheck again on a fresh clone of the git repo and saw the number of error reports was quite smaller than what I reported before. That's because my previous run was on a (quite older) version; most of those must've been fixed a

Re: cppcheck errors

2015-09-01 Thread Martin Galvan
Hi everyone! I just ran CppCheck again on a fresh clone of the git repo and saw the number of error reports was quite smaller than what I reported before. That's because my previous run was on a (quite older) version; most of those must've been fixed already. Some of the error reports remain, tho

[PATCH] Fix CppCheck errors

2015-09-01 Thread Martin Galvan
This patch fixes the following CppCheck errors found throughout the code: [c/src/lib/libbsp/shared/umon/umon.h:21]: (error) Invalid number of character ({) when these macros are defined: '__cplusplus'. [cpukit/libmisc/dumpbuf/dumpbuf.c:69]: (error) Undefined behavior: Variable '

Re: cppcheck errors

2015-08-28 Thread Daniel Gutson
On Thu, Aug 27, 2015 at 6:38 PM, Joel Sherrill wrote: > > > On 8/27/2015 4:15 PM, Martin Galvan wrote: >> >> On Thu, Aug 27, 2015 at 6:10 PM, Daniel Gutson >> wrote: >>> >>> Maybe we can just provide the list until we provide the fixes? Martín? >> >> >> Gladly. Keep in mind we ran cppcheck only o

obsolete h8300 was Re: cppcheck errors

2015-08-27 Thread Joel Sherrill
On 8/27/2015 4:22 PM, Martin Galvan wrote: On Thu, Aug 27, 2015 at 6:19 PM, Daniel Gutson wrote: Please note too that there are some false positives, like the realloc one. Actually, we ruled out most false positives. IIRC that one is an actual bug. Btw, sorry for the Spanish comment there.

Re: cppcheck errors

2015-08-27 Thread Joel Sherrill
On 8/27/2015 4:15 PM, Martin Galvan wrote: On Thu, Aug 27, 2015 at 6:10 PM, Daniel Gutson wrote: Maybe we can just provide the list until we provide the fixes? Martín? Gladly. Keep in mind we ran cppcheck only on the modules we use (though some things may've slipped in, like nios): Most o

Re: cppcheck errors

2015-08-27 Thread Joel Sherrill
e > >> > >> On Wed, Aug 12, 2015 at 5:43 PM, Daniel Gutson > >> mailto:daniel.gut...@tallertechnologies.com>> wrote: > >> > Hi guys, > >> > > >> > we will be posting patches for a number of errors reported by > &

Re: cppcheck errors

2015-08-27 Thread Martin Galvan
On Thu, Aug 27, 2015 at 6:19 PM, Daniel Gutson wrote: > Please note too that there are some false positives, like the realloc one. Actually, we ruled out most false positives. IIRC that one is an actual bug. Btw, sorry for the Spanish comment there. It means that if we don't initialize _ccr we j

Re: cppcheck errors

2015-08-27 Thread Daniel Gutson
Please note too that there are some false positives, like the realloc one. On Thu, Aug 27, 2015 at 6:15 PM, Martin Galvan wrote: > On Thu, Aug 27, 2015 at 6:10 PM, Daniel Gutson > wrote: >> Maybe we can just provide the list until we provide the fixes? Martín? > > Gladly. Keep in mind we ran cpp

Re: cppcheck errors

2015-08-27 Thread Martin Galvan
On Thu, Aug 27, 2015 at 6:10 PM, Daniel Gutson wrote: > Maybe we can just provide the list until we provide the fixes? Martín? Gladly. Keep in mind we ran cppcheck only on the modules we use (though some things may've slipped in, like nios): [c/src/lib/libbsp/shared/umon/umon.h:21]: (error) Inva

Re: cppcheck errors

2015-08-27 Thread Daniel Gutson
t; from >> > >> which master is slowly diverging. Any patches you want applied >> before >> > >> the official release need to be (1) associated with a ticket on >> Trac, >> > >> and (2) apply to both

Re: cppcheck errors

2015-08-27 Thread Joel Sherrill
t applied before > >> the official release need to be (1) associated with a ticket on Trac, > >> and (2) apply to both the 4.11 and master branches. > >> > >> Gedare > >> > >> On Wed, Aug 12, 2015 at 5:43 PM, Daniel Gutson > >> mailto:d

Re: cppcheck errors

2015-08-13 Thread Daniel Gutson
ed on rtems.git/4.11 branch, from > >> which master is slowly diverging. Any patches you want applied before > >> the official release need to be (1) associated with a ticket on Trac, > >> and (2) apply to both the 4.11 and master branches. > >> > >> Geda

Re: cppcheck errors

2015-08-13 Thread Gedare Bloom
nches. >> >> Gedare >> >> On Wed, Aug 12, 2015 at 5:43 PM, Daniel Gutson >> wrote: >> > Hi guys, >> > >> > we will be posting patches for a number of errors reported by >> > cppcheck (errors that we can confirm are not false positiv

Re: cppcheck errors

2015-08-13 Thread Daniel Gutson
fore > the official release need to be (1) associated with a ticket on Trac, > and (2) apply to both the 4.11 and master branches. > > Gedare > > On Wed, Aug 12, 2015 at 5:43 PM, Daniel Gutson > wrote: > > Hi guys, > > > > we will be posting patches for a num

Re: cppcheck errors

2015-08-13 Thread Gedare Bloom
, 2015 at 5:43 PM, Daniel Gutson wrote: > Hi guys, > > we will be posting patches for a number of errors reported by > cppcheck (errors that we can confirm are not false positives). > Please hold on any release. > >Daniel. > > -- > > Daniel F. Gutson > Ch

cppcheck errors

2015-08-12 Thread Daniel Gutson
Hi guys, we will be posting patches for a number of errors reported by cppcheck (errors that we can confirm are not false positives). Please hold on any release. Daniel. -- Daniel F. Gutson Chief Engineering Officer, SPD San Lorenzo 47, 3rd Floor, Office 5 Córdoba, Argentina Phone