fix issue 10405 - redundant "expression has no effect" error when returning non-void in void function

http://d.puremagic.com/issues/show_bug.cgi?id=10405