Re: [gthumb-list] Dead code



I used : cppcheck -a -q -s --unused-functions src libgthumb

There are false positives for methods used in macros (like *_get_type () or *_class_init () methods) but not that much.

I use cppcheck 1.27 if it can help.

Marc

2009/5/30 Dr. Michael J. Chudobiak <mjc avtechpulse com>
Marc Pavot wrote:
Hello all,

I have run cppcheck (http://cppcheck.wiki.sourceforge.net/) on GThumb code and it has detected a lot of unused code.

This patch should remove most of this unused code (~2310 lines of code) to avoid useless maintenance.


What cppcheck command did you use? Whenever I tried to use it, it found way too many false positives for unused functions.

- Mike



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]