as the program is very big iam just posting a part of it where it contains my problematic code and the comilations warnings below __________________________________________________________________________________________________________________________________________ void * ThreadAdd(void * a); void * ThreadAdd(void * a) { return; } static inline void start_acc_thread(){ if (pthread_create(&tid1,NULL,ThreadAdd,NULL)){ printf("\n ERROR creating thread1 "); exit(1); } } ________________________________________________________________________________________________ acc_mod.c: In function `ThreadAdd': acc_mod.c:272: warning: `return' with no value, in function returning non-void