Skip to content

Commit

Permalink
Use 'if' instead of 'else if' to avoid a comment the ddmd converter c…
Browse files Browse the repository at this point in the history
…an't handle
  • Loading branch information
yebblies committed Mar 30, 2014
1 parent 8e2b13b commit 927aeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/func.c
Original file line number Diff line number Diff line change
Expand Up @@ -3563,7 +3563,7 @@ bool FuncDeclaration::setGCUse(Loc loc, const char* warn)
return true;
}
//Only warn about errors in 'root' modules
else if (global.params.vgc && getModule() && getModule()->isRoot()
if (global.params.vgc && getModule() && getModule()->isRoot()
&& !inUnittest())
{
fprintf(global.stdmsg, "%s: vgc: %s\n", loc.toChars(), warn);
Expand Down

0 comments on commit 927aeb7

Please sign in to comment.