Author: Anthony Cozzie
Date: 20:22:29 10/15/02
Go up one level in this thread
On October 15, 2002 at 20:32:13, Nolan Denson wrote: >While compiling I get the following warning ... Is this something i need to >worry about. If so how can i fix it? > >c:\Crafty\iterate.c(209): warning #167: argument of type "void *" is >incompatible with parameter of type "unsigned int (__stdcall *)(void *)" > tfork(pt,ThreadInit,proc); > >Thanks > >God Bless void *: 32 bits, holds address of some byte in memory. unsigned int (__stdcall *)(void *): 32 bits, holds address of some byte in memory, where that address is the start of a function whose argument is a void * and that returns an int. I haven't looked at the crafty source much, but I'm assuming tfork spawns another thread. This thread needs code to execute - that fancy function pointer.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.