Issue 3882: Use cast(void) instead of value capture
Merge pull request #2021 from nordlow/warn-unused-returns

Issue 3882: Use cast(void) instead of value capture