Nieważna wartość nie ignorowana tak, jak powinna

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