Rule 9.1 is not marked as 'supported' on the page: http://cppcheck.sourceforge.net/misra.php The following code generates an error that is detected by cppcheck: void misra_9_1(void) { int unknown_value1; int unknown_value2; if (unknown_value1 == 0) { // detected as [uninitvar] unknown_value1++; int sum= unknown_value1 + unknown_value2; // detectedas[uninitvar] } }
Rule 9.1 is not marked as 'supported' on the page: http://cppcheck.sourceforge.net/misra.php The following code generates an error that is detected by cppcheck: ` void misra_9_1(void) { int unknown_value1; int unknown_value2; if (unknown_value1 == 0) { // detected as [uninitvar] unknown_value1++; int sum= unknown_value1 + unknown_value2; // detectedas[uninitvar] } }`
Rule 9.1 is not marked as 'supported' on the page: http://cppcheck.sourceforge.net/misra.php The following code generates an error that is detected by cppcheck: void misra_9_1(void) { int unknown_value1; int unknown_value2; if (unknown_value1 == 0) { // TODO: detected as [uninitvar] unknown_value1++; int sum= unknown_value1 + unknown_value2; // TODO: detected as[uninitvar] } }
Rule 9.1 is not marked as 'supported' on the page: http://cppcheck.sourceforge.net/misra.php The following code generates an error that is detected by cppcheck: void misra_9_1(void) { int unknown_value1; int unknown_value2; if (unknown_value1 == 0) { // TODO: detected as [uninitvar] unknown_value1++; int sum= unknown_value1 + unknown_value2; // TODO: detected as [uninitvar] } }