google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

CppCheck test results #372

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Filename    LineNumber      CppCheckId      Severity    Message   
gb.dbus/src/dbus_print_message.c    148 memleakOnRealloc    error   Common realloc 
mistake: "bytes" nulled but not freed upon failure
gb.gsl/src/c_matrix.c   638 uninitvar   error   Uninitialized variable: m
gb.gsl/src/main.c   37  syntaxError error   Invalid number of character ({) when 
these macros are defined: '__cplusplus'.
gb.gsl/src/main.c   95  syntaxError error   Invalid number of character ({) when 
these macros are defined: '_cpluscplus'.
gb.gtk/src/gmessage.cpp 265 uninitvar   error   Uninitialized variable: filter
gb.net.smtp/src/main.c  52  syntaxError error   Invalid number of character ({) 
when these macros are defined: '_cpluscplus'.
gb.net.smtp/src/main.c  31  syntaxError error   Invalid number of character ({) 
when these macros are defined: '__cplusplus'.
gb.net/src/main.c   74  syntaxError error   Invalid number of character ({) when 
these macros are defined: '_cpluscplus'.
gb.net/src/main.c   39  syntaxError error   Invalid number of character ({) when 
these macros are defined: '__cplusplus'.
gb.net.curl/src/main.c  39  syntaxError error   Invalid number of character ({) 
when these macros are defined: '__cplusplus'.
gb.net.curl/src/main.c  75  syntaxError error   Invalid number of character ({) 
when these macros are defined: '_cpluscplus'.
gb.xml/src/element.h    54  syntaxError error   Invalid number of character ({) when 
these macros are defined: 'HELEMENT_H'.
gb.v4l/src/main.c   56  syntaxError error   Invalid number of character ({) when 
these macros are defined: '_cpluscplus'.
gb.v4l/src/main.c   32  syntaxError error   Invalid number of character ({) when 
these macros are defined: '__cplusplus'.
main/lib/compress/main.c    124 syntaxError error   Invalid number of character ({) 
when these macros are defined: '_cpluscplus'.
main/lib/compress/main.c    39  syntaxError error   Invalid number of character ({) 
when these macros are defined: '__cplusplus'.

Original issue reported on code.google.com by kim.di...@gmail.com on 3 Jan 2013 at 8:48

GoogleCodeExporter commented 9 years ago
Not very readable, but thanks!

Apparently:
- Error in 'gb.gsl/src/c_matrix.c' is a false positive.
- Error in 'gb.gtk/src/gmessage.cpp' too, and there is no occurrence of the 
'filter' variable on this line.
- Error in 'gb.xml/src/element.h' is a shameless hack of Adrien.

Others are typo in useless code that I will remove.

Original comment by benoit.m...@gmail.com on 3 Jan 2013 at 9:59

GoogleCodeExporter commented 9 years ago
All errors should be fixed in revision #5489, except maybe the second one.

Original comment by benoit.m...@gmail.com on 3 Jan 2013 at 10:07