Implement partial fix for 3882
Merge pull request #3342 from nordlow/warn-unused-returns

Issue 3882: Add warning for unused non-void returns of strictly pure function calls