MISRA.GOTOGoto statement is used. MISRA C 2012 Rule 15.1: The goto statement shall not be used.Category: Advisory Analysis: Decidable, Single Translation Unit Applies to: C90, C99 RationaleUnconstrained use of goto can lead to programs that are unstructured and extremely difficult to understand. In some cases a total ban on goto requires the introduction of flags to ensure correct control flow, and it is possible that these flags may themselves be less transparent than the goto they replace. Therefore, if this rule is not followed, the restricted use of goto is allowed where that use follows the guidance in Rule 15.2 and Rule 15.3. MISRA-C 2004 Rule 14.4 (required): The goto statement shall not be used.These rules are in the interests of good structured programming. One break statement is allowed in a loop since this allows, for example, for dual outcome loops or for optimal coding. |