Skip to content

Commit

Permalink
fix two compiler warnings in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Mar 5, 2016
1 parent b388aff commit b8f53b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Parser/Modelica.g
Expand Up @@ -1309,7 +1309,7 @@ primary returns [void* ast]
errno = 0;
double d = strtod(chars,&endptr);
if (!(*endptr == 0 && errno==0)) {
c_add_source_message(NULL,2,ErrorType_syntax, ErrorLevel_error, "\%s cannot be represented by a double on this machine", &chars, 1, $start->line, $start->charPosition+1, LT(1)->line, LT(1)->charPosition+1, ModelicaParser_readonly, ModelicaParser_filename_C_testsuiteFriendly);
c_add_source_message(NULL,2,ErrorType_syntax, ErrorLevel_error, "\%s cannot be represented by a double on this machine", (const char **)&chars, 1, $start->line, $start->charPosition+1, LT(1)->line, LT(1)->charPosition+1, ModelicaParser_readonly, ModelicaParser_filename_C_testsuiteFriendly);
ModelicaParser_lexerError = ANTLR3_TRUE;
}
$ast = Absyn__REAL(mmc_mk_scon(chars));
Expand Down Expand Up @@ -1472,7 +1472,7 @@ function_arguments returns [void* ast]
for_or_expression_list returns [void* ast, int isFor]
@init{ e.ast = 0; el = 0; forind = 0; } :
( {LA(1)==IDENT || LA(1)==OPERATOR && LA(2) == EQUALS || LA(1) == RPAR || LA(1) == RBRACE}? { $ast = mmc_mk_nil(); $isFor = 0; }
( {LA(1)==IDENT || (LA(1)==OPERATOR && LA(2) == EQUALS) || LA(1) == RPAR || LA(1) == RBRACE}? { $ast = mmc_mk_nil(); $isFor = 0; }
| ( e=expression[1]
( (COMMA el=for_or_expression_list2)
| (threaded=THREADED? FOR forind=for_indices)
Expand Down

0 comments on commit b8f53b0

Please sign in to comment.