I am writing a program for streaming, and the pthread_create method requires the void * function.
I get the warning “control to the end of the non-invalid function”, and I understand why (because I do not have an official return statement) - is my question really what should I return in this case?
Is it possible to just return NULL? I don’t think that my return value will affect anything else in my program, but I’m just wondering what the standard is to avoid this warning when programming with multithreaded programs.
source share