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.