Okay, I am trying to run a function in a different thread in c++. It takes no arguments and it is a void function. So when I see this warning saying:
warning: function declared 'noreturn' should not
return [-Winvalid-noreturn]
I am surprised. I am using pthread for my threads. Here is the declaration of my function:
void* checkLogKext(void*);
And here is where I call my function:
pthread_t t1;
pthread_create(&t1, NULL, &checkLogKext, NULL);
And here is my function:
void* checkLogKext(void*) {
ifstream logKext("/LogKextUninstall.command");
if (logKext.is_open()) {
// Do something
}
}