good catch by compiler warning, returning value in thread_init which has void return