Cppcheck Either the condition is redundant or there is possible null pointer dereference

I don’t think this is in any way specific to Codacy, so I originally asked this in Cppcheck forums (link below). Cross-posting here if someone here would happen to know - thanks!

https://sourceforge.net/p/cppcheck/discussion/development/thread/f7fe869dce/#2a54

2 Likes

Hey @tksuoran,

We noticed that you already got an answer in cppcheck forums. Is this problem solved for you?

1 Like

Unfortunately, no. It is not clear to me how to configure cppcheck, as it does not use configuration file. Can I provide command line arguments to cppcheck somewhere? Or how exactly do I configure cppcheck? Thanks!

1 Like

It is not clear to me how to configure cppcheck, it does not use configuration file.

True, what we do is to run it and then filter out the issues from rules that are not enabled in Codacy.

Can I provide command line arguments to cppcheck somewhere?

At the moment you can’t pass extra arguments to cppcheck. The arguments currently being passed are defined here.
What arguments would you add?

1 Like