Navigation Menu

Skip to content

Commit

Permalink
Eliminated use of "const" qualifier on pointer variables. There is no
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion c/vdmclib/src/main/VdmMap.c
Expand Up @@ -417,7 +417,7 @@ TVP newMapVarToGrow(size_t size, size_t expected_size, ...)
theMap = newTypeValue(VDM_MAP, (TypedValueType){ .ptr = ptr });

va_list argList;
va_start(argList, size * 2);
va_start(argList, expected_size);

for(int i = 0; i < size; i++)
{
Expand Down
@@ -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())

0 comments on commit bf8cc05

Please sign in to comment.