T
Thomas Barth
Hi
could someone explain to me why the compiler outputs a warning that the
control reaches the end of a non void function?
int main(void) {
...
pthread_t thrCallOp, thrHangUp;
pthread_create(&thrCallOp, NULL, &callOp, NULL);
pthread_create(&thrHangUp, NULL, &setHangUp, NULL);
pthread_join(thrCallOp, NULL);
pthread_join(thrHangUp, NULL);
...
return EXIT_SUCCESS;
}
void *callOp() {
while(1) {
if ('q' == ch) {
break;
}
...
sleep(1);
}
} //end of non-void function
Thanks in advance,
T h o m a s B
could someone explain to me why the compiler outputs a warning that the
control reaches the end of a non void function?
int main(void) {
...
pthread_t thrCallOp, thrHangUp;
pthread_create(&thrCallOp, NULL, &callOp, NULL);
pthread_create(&thrHangUp, NULL, &setHangUp, NULL);
pthread_join(thrCallOp, NULL);
pthread_join(thrHangUp, NULL);
...
return EXIT_SUCCESS;
}
void *callOp() {
while(1) {
if ('q' == ch) {
break;
}
...
sleep(1);
}
} //end of non-void function
Thanks in advance,
T h o m a s B