Fix compilation when using unused-results