False positive in wWinMain function cpp:S995

Operating system: Windows 10
SonarLint plugin version:6.15.0.67199
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)

Hi,

Welcome to the community!

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

 
Thx,
Ann

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.