c++ Thread Anachronism Warning
Posted on 2005-05-12
I am trying to comple a library on Solaris 7 that is used to contoll custom boards and drivers.
I get the following warning:
"Thread.cpp", line 30: 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*).
It is complaining wbout the following peice of code:
if (pthread_create(&m_id, &m_attr, startThread, this))
throw tds_InternalError("pthread_create failed");
I am unsure why this warning is showing up. I haved looked at many forums... with no answer.
This is the only warning i have in the compile. When i try and run a test program that uses the library it seg faults.
Could this be because of this error or in the actual drivers?
Help to resolve this warning will great!