HomePhorge

Explicitly ignore unused results of function calls

Referenced Files
None
Subscribers
None

Description

Explicitly ignore unused results of function calls

The latest MSVC gives a style warning about unused return values of functions. When the function is called only for its side-effects and the returned values is not needed, ignore the result of the function by explicitly casting it to void.

Details

Provenance
Dávid JuhászAuthored on Jul 29 2019, 7:57 PM
juhaszPushed on Jul 29 2019, 7:58 PM
Parents
R20:142e41266374: Continue resolving issues regarding MSVC.
Branches
Unknown
Tags
Unknown

Event Timeline

Dávid Juhász <juhasz.david.scholar@gmail.com> committed R20:41c365ed2fcb: Explicitly ignore unused results of function calls (authored by Dávid Juhász <juhasz.david.scholar@gmail.com>).Jul 29 2019, 7:57 PM