Need to correct the function declaration.
Jonathan Wakely
jwakely.gcc@gmail.com
Mon Nov 7 07:56:00 GMT 2011
On 7 November 2011 03:02, James Dennett wrote:
> On Sun, Nov 6, 2011 at 6:55 PM, niXman wrote:
>> When I try to build gcc-trunk on OpenBSD-5.0(gcc-4.2.1), I get the
>> following error:
>>> gcc-4.6.2/i686-pc-openbsd5.0/libstdc++-v3/include/mutex:818:64: error:
>>> invalid conversion from 'void (*)(...)' to 'void (*)()' [-fpermissive]
>>
>> Please add the void into arguments list for function __once_proxy();,
>> in file mutex:799.
>
> This source file is C++, not C, and so adding "void' should be a no-op.
>
> What makes you believe that this is the problem? Could you show the
> line where the error occurs?
Same problem on AIX:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50982#c36
I have no idea why that makes a difference, but I can check in the change.
More information about the Gcc
mailing list