Fix compilation when using unused-results

Fix compilation when using unused-results