Added void typecast to remove warnings when compiling without IPV6