Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminated use of "const" qualifier on pointer variables. There is no
straightforward way to check when they should be discarded so that compiler warnings are eliminated.
- Loading branch information
Victor Bandur
committed
Oct 27, 2016
1 parent
9f6cd3a
commit bf8cc05
Showing
2 changed files
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
core/vdm2c/src/main/resources/c-templates/org/overture/codegen/ir/declarations/AVarDeclIR.vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#set( $final = "") | ||
#if ( $node.getFinal() ) | ||
#set( $final = "const") | ||
#end | ||
## | ||
## | ||
#set( $pattern = $CFormat.format($node.getPattern()) ) | ||
## | ||
##$CFormat.formatMetaData($node.getMetaData())## | ||
## | ||
${final} $CFormat.format($node.getType()) $pattern = $CFormat.format($node.getExp()) | ||
$CFormat.format($node.getType()) $pattern = $CFormat.format($node.getExp()) |