This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello!
The following code reports MISRA rule 17.6 violation, that in my opinion shouldn't be reported:
int16_t global_var; void Test(const int16_t *input) { global_var = *input; }
Code was tested on C2000 compiler, version 6.2.8. Could it be a bug in MISRA checker?
Best regards,
Jernej
Another code snippet - however this goes through MISRA check without any errors and is quite similar to previous (if first failed, this one should also fail):
int16_t global_var; void Test(const int16_t *input) { global_var = *input + 1; }
Best regards,
Jernej
Thank for submitting a concise test case. I can reproduce the behavior you describe. I strongly suspect it is an error in the compiler. I filed SDSCM00050821 in the SDOWP system to have this investigated. Feel free to follow it with the SDOWP link below in my signature.
Thanks and regards,
-George