пустое значение не игнорируется, как должно быть

you're trying to capture the return value of a function for which the return type is void.
Poised Peacock