error: void value not ignored as it ought to be| code example
Example: void value not ignored as it ought to be
you're trying to capture the return value of a function for which the return type is void.
you're trying to capture the return value of a function for which the return type is void.