|
|
"Melody" <nomail@nomail> wrote:
> libpthreadGC2.a pthreadGC2.dll
>
> #include <pthread.h>
> #include <unistd.h>
C:\mirc614\irc\timer.h|32|warning: control reaches end of non-void function
[-Wreturn-type]
whats the fix for that warning? for this "non-void function"
??? compiler wont allow returning anything ??
void * twait(int secs)
{
/// do something here
}
newthread launcher from a dll - follow up.
int timer1(HWND mWnd, int secs, void * func)
{
pthread_t thread; int err;
err = pthread_create(&thread, NULL, func, (void *)secs);
if (err) return 1;
return 0;
}
timer1(mWnd,0,twait);
working now,
but is 4th parameter done the right way? what about &secs ??
you guys ought to know something.
Post a reply to this message
|
|