False positive in wWinMain function cpp:S995

Operating system: Windows 10
SonarLint plugin version:
Programming language you’re coding in: c++
Is connected mode used: no

When using wWinMain function i get false positive for not making type of parameter a pointer-to-const, but wWinMain is already declared function so i cant change type of arguments it takes.

int APIENTRY wWinMain(_In_ HINSTANCE hInstance, [[maybe_unused]]  _In_opt_  HINSTANCE  hPrevInstance , [[maybe_unused]]  _In_ const LPWSTR lpCmdLine, [[maybe_unused]]  _In_ int nCmdShow)


Welcome to the community!

SonarLint version was released last week. Could you upgrade & make sure this is still replicable, please?


After update it still shows false positive.

1 Like

Hi @suzej ,

Welcome to the community and thanks for raising this point!

I created a ticket to follow this false positive.