[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-cxx-dev
Subject:    Re: CXX-DEV: pthread, cc warning 604 pointers incompatible. due to
From:       Matthew Collins <collins () hpsgns1 ! sgp ! hp ! com>
Date:       2000-12-08 13:33:53
[Download RAW message or body]



"EIJNDHOVEN,HUUB-VAN (HP-Netherlands,ex1)" wrote:

> On my very first test program cc reports warning 604 / incompatible pointers
> on the call to pthread_create.
>
> Is this due me using an ancient version of cc?

no, the error message means what it says

> cc: "les1.c", line 24: warning 563: Argument #3 is not the correct type.

don't cast the function pointer to a void pointer.

You should avoid all the unnecessary casting it takes
longer to type and causes more problems.

ie.

pthread_create(worker1Th, 0, ProcessRequest, workOrder1);

Matthew

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic