POV-Ray : Newsgroups : povray.binaries.images : HSL HSV colors.inc fopah : Re: HSL HSV colors.inc fopah Server Time
27 Apr 2024 17:10:47 EDT (-0400)
  Re: HSL HSV colors.inc fopah  
From: Melody
Date: 30 Dec 2019 22:50:01
Message: <web.5e0ac35dffbdd819da690110@news.povray.org>
"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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.