Hi,

While compiling with Sun CC (studio10) compiler, I've observed the following warnings:

Warning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const _pthread_attr*, extern "C" void*(*)(void*), void*) is being passed void*(*)(void*).

Any tips on resolving this?

Thanks,
ameli.

Can you post some code?

click me
My guess is you tried to pass a C++ function as a "pointer to function" which is expecting a pointer to a C function.

Perhaps some of the links will have more ideas, I didn't read them all.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.