...
Code Block |
---|
|
int *p1 = foo();
/* Removable if bar() does not produce any side effects */
(void)bar();
/* Removable if baz() does not produce any side effects */
(void)baz();
return p1;
|
Exceptions
MSC13-EX1: Initializing a variable with a default value, such as 0, which gets subsequently overwritten may be inefficient, but is less of a problem than reading an uninitialized value, as per EXP33-C. Do not read uninitialized memory.Risk Assessment
Unused values may indicate significant logic errors.
...