parser: Show error instead of warning for byref function without result

This fixes #755. Of course the check is simple and won't catch all possible
cases - it only checks whether the function result was set once, but it
does not check whether it was set on all code paths.