Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Avoid static analyzer dead assignment warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Oct 5, 2017
1 parent 215f1b1 commit 9ce0a4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/Template/CodegenCFunctions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6769,6 +6769,7 @@ case exp as MATCHEXPRESSION(__) then
<<
goto <%goto%>;
<%prefix%>_done:
(void)<%ix%>;<%/* When we skip cases, the static analyzer thinks that is a dead assignment even if longjmp is in play. */%>
MMC_RESTORE_INTERNAL(mmc_jumper);
goto <%prefix%>_done2;
<%goto%>:;
Expand Down

0 comments on commit 9ce0a4a

Please sign in to comment.