Improve handling of ignored function call return values