[PROJ] false positive of cppcheck?

Sandro Santilli strk at kbt.io
Mon Jul 6 07:54:54 PDT 2026


On Mon, Jul 06, 2026 at 12:54:03PM +0300, Laurențiu Nicola wrote:
> Hi Javier,
> 
> It looks like a regression in cppcheck 2.22-dev (2.21 works). I minimized it to:
> 
> extern bool f();
> int main() {
>     bool datumAdded = false;
>     if (f()) {
>         if (f()) return 1;
>         if (f()) datumAdded = true;
>     }
>     if (datumAdded); // style: Condition 'datumAdded' is always false
> }
> 
> I wanted to report it, but I honestly don't feel like dealing with their registration process (see what I mean about the OSGeo mantra, strk?).

I know the mantra is an obstacle, but it was intentional :)
Out of curiosity, where is "their registration process" ? I don't find it in this email.

> Daniel, please take a look at the snippet above or, if not, create an account for me:
> 
>     lnicola:$2y$10$K2I2FWFyLHMGZh/CYsMaTO4g3N1PzeN37JAo85616xmwMCnb7HiyW

This is a great way to request an account. See how easy it would be for us
to reply with a mantra, rather than having to figure out how to use your
hashed password with LDAP ? ;)

--strk;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20260706/2455e448/attachment.sig>


More information about the PROJ mailing list