Commit 91368405 authored by John van Groningen's avatar John van Groningen
Browse files

disable 'function may fail' warnings for Clean 2

parent 61b1888f
......@@ -953,10 +953,13 @@ static void CodeRule (ImpRuleP rule)
if (rule_may_fail){
++CurrentAltLabel.lab_post;
CurrentLine=rule->rule_alts->alt_line;
StaticMessage (FunctionMayFailIsError, "%S", "function may fail", CurrentSymbol);
#if CLEAN2
if (FunctionMayFailIsError)
#endif
StaticMessage (FunctionMayFailIsError, "%S", "function may fail", CurrentSymbol);
MatchError (asize,bsize,rule_sdef,root_node_needed,0);
}
......@@ -1195,7 +1198,7 @@ void CodeGeneration (ImpMod imod, char *fname)
Verbose ("Code generation");
if (!OpenABCFile (fname)){
StaticMessage (True, "<open file>","Can't create abc file (disk full?)");
StaticMessage (True, "<open file>","Can't create abc file '%s'",fname);
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment