- To: Mohsen Pahlevanzadeh <mohsen@xxxxxxxxxxxxxxxxx>
- Subject: Re: -pedantic and -ansi
- From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
- Date: Thu, 19 Jul 2012 08:36:56 +0100
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <1342677995.4243.2.camel@debian>
On 19 July 2012 07:06, Mohsen Pahlevanzadeh wrote:
> Thank you ,
> i migrated to "-ansi -pedantic -std=c++11 -std=c++98"
> but get the following warning:
> warning: converting from ‘void (NetworkSocket::*)()’ to ‘void*
> (*)(void*)’ [-pedantic]
> my line is:
> if (pthread_create(threadArray, NULL, (void*(*)(void*))
> &NetworkSocket::threadTest , this) != 0)
> Do you have any idea that i dont prevent to above warning?
This question is not about GCC so this list is not the right place for
it. Please find somewhere more appropriate to learn C++, e.g.
http://stackoverflow.com/questions/1151582/pthread-function-from-a-class
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]