Hello, we think we have another false positive raised. Here is the code sample:
static struct my_context {
pthread_t thread;
bool run;
} my_test = { 0 };
my_test = { 0 };
is being report as (cpp:S4962)
While trying the follwoing code the issue dissapears:
static struct my_context {
pthread_t thread;
bool run;
} my_test = { nullptr };
pthread_t is defined in Amazon FreeRTOS POSIX V1.1.0 freertos/posix/include/FreeRTOS_POSIX/sys/types.h
Our setup:
SonarLint v3.11.0 - not connected to server.
SonarQube server - 9.5.0
Both SonarLint and SonarQube server reports issues.
Thank you.