Dear support,
Currently SonarQube reports no issue if we implement this piece of C-code
varA = 1;
varA = 5;
use_in_function(varA);
this could be added in SonarQube
best regards,
Jean-Christophe Coulet
Dear support,
Currently SonarQube reports no issue if we implement this piece of C-code
varA = 1;
varA = 5;
use_in_function(varA);
this could be added in SonarQube
best regards,
Jean-Christophe Coulet
Hello Jean-Christophe,
You seem to be talking about S1854.
Do you have a valid code sample where this rule does not trigger any violation while it should?
Thank you,
Here is a valid example
void test_function(uint8_t dummy)
{
uint32_t a;
uint32_t b;
a = 15;
memset(&b, 0, 4);
a = 30;
memcpy(&b, &a, 4);
}
best regards,
Jean-Christophe Coulet
Hi @jcou,
could you please try with the latest version of the C/C++ analyzer which is version 6.3? Can you still not see the issue?