cppcheck warnings... Mostly fixed, but not few one...

Gilles Caulier caulier.gilles at gmail.com
Thu May 17 18:19:47 BST 2018


Hi all,

I very well advanced with cppcheck static analyzer reports review, and i
fixed around 300 entries since 2 weeks...

But, as usual, the mostly difficult task is always at end, and the last
reports sound like... special...

Look this one :

https://www.digikam.org/reports/cppcheck/master/27.html#line-195

If we have really an error here, digiKam will crash very quickly when an
image is open with DImg container. A false positive ?

And what's about these 4 entries about equality operator :

https://www.digikam.org/reports/cppcheck/master/17.html#line-90
https://www.digikam.org/reports/cppcheck/master/48.html#line-179
https://www.digikam.org/reports/cppcheck/master/83.html#line-55
https://www.digikam.org/reports/cppcheck/master/94.html#line-531

And definitively, i lost with these one :

https://www.digikam.org/reports/cppcheck/master/51.html#line-635
https://www.digikam.org/reports/cppcheck/master/67.html#line-56
https://www.digikam.org/reports/cppcheck/master/70.html#line-185
https://www.digikam.org/reports/cppcheck/master/70.html#line-188
https://www.digikam.org/reports/cppcheck/master/70.html#line-191

Where these virtual calls appears in source code ?

Any tips, viewpoints, and guidance ?

Best

Gilles Caulier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20180517/bd4d7b46/attachment.html>


More information about the Digikam-devel mailing list