私は ansi と iso の世界の初心者です。プログラムを次のようにコンパイルしました。
-asni -pedantic -std=c++11 -std=c++98
今、私は次の警告を受け取ります:
warning: converting from 'void (NetworkSocket::*)()' to 'void* (*)(void*)' [-pedantic]
次の行の場合:
if (pthread_create(this->threadArray, NULL, (void*(*)(void*)) &NetworkSocket::threadProcedure , (void *)this) != 0)
{ /* error */ }
どうすればペダンティックな警告を渡すことができますか?