RSS/Atom feed Twitter
Site is read-only, email is disabled

Raw cppcheck full report

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Raw cppcheck full report Julien Nabet 05 Sep 19:37
  Raw cppcheck full report Mukund Sivaraman 06 Sep 02:04
Julien Nabet
2012-09-05 19:37:10 UTC (over 12 years ago)

Raw cppcheck full report

Hello,

I runned cppcheck, here's some reports which may interest you:

[plug-ins/common/file-pdf-save.c:1264] -> [plug-ins/common/file-pdf-save.c:1260]: (style) Found duplicate branches for if and else.
[plug-ins/common/warp.c:1365] -> [plug-ins/common/warp.c:1362]: (style) Found duplicate branches for if and else. [plug-ins/gfig/gfig-preview.c:235] -> [plug-ins/gfig/gfig-preview.c:231]: (style) Found duplicate branches for if and else.

[plug-ins/common/file-raw.c:730]: (error) Used file that is not opened. [plug-ins/common/file-raw.c:732]: (error) Used file that is not opened.

[plug-ins/common/value-propagate.c:395] -> [plug-ins/common/value-propagate.c:395]: (style) Same expression on both sides of '||'.

[plug-ins/file-sgi/sgi-lib.c:379]: (error) Read and write operations without a call to a positioning function (fseek, fsetpos or rewind) or fflush in between result in undefined behaviour.

In brief, my 2 cents

Julien

Mukund Sivaraman
2012-09-06 02:04:17 UTC (over 12 years ago)

Raw cppcheck full report

Hi Julien

On Wed, Sep 05, 2012 at 09:37:10PM +0200, Julien Nabet wrote:

Hello,

I runned cppcheck, here's some reports which may interest you:

[plug-ins/common/file-pdf-save.c:1264] -> [plug-ins/common/file-pdf-save.c:1260]: (style) Found duplicate branches for if and else.
[plug-ins/common/warp.c:1365] -> [plug-ins/common/warp.c:1362]: (style) Found duplicate branches for if and else. [plug-ins/gfig/gfig-preview.c:235] -> [plug-ins/gfig/gfig-preview.c:231]: (style) Found duplicate branches for if and else.

These have been fixed ^.

[plug-ins/common/file-raw.c:730]: (error) Used file that is not opened. [plug-ins/common/file-raw.c:732]: (error) Used file that is not opened.

I don't think these two reports are correct ^.

[plug-ins/common/value-propagate.c:395] -> [plug-ins/common/value-propagate.c:395]: (style) Same expression on both sides of '||'.

This has been fixed ^.

[plug-ins/file-sgi/sgi-lib.c:379]: (error) Read and write operations without a call to a positioning function (fseek, fsetpos or rewind) or fflush in between result in undefined behaviour.

This has not been fixed as it needs a more thorough check ^.

In brief, my 2 cents

I appreciate that you have run this. Would you spend some time integrating it with our build system so that we can run `make cppcheck' or so and get these reports, if cppcheck is found on the development machine at configure time?

Kind regards,

Mukund