02-12-2020, 03:41 PM
Your code shouldn't be getting a violation of 0-1-6. As you say, 0-1-6 worries about "variables being given values that are never subsequently used" - NEVER being the operative word.
Analysis of this function should determine that kConst3 MAY be used, depending upon the value of aVal, so no report is required
Analysis of this function should determine that kConst3 MAY be used, depending upon the value of aVal, so no report is required
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group