This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Need to correct the function declaration.
2011/11/7 niXman <i.nixman@gmail.com>:
> 2011/11/7 James Dennett <james.dennett@gmail.com>:
>> On Sun, Nov 6, 2011 at 6:55 PM, niXman <i.nixman@gmail.com> 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.
> This is the extern "C" declaration.
At least adding void solves the problem.
>
>
>>
>> What makes you believe that this is the problem? ÂCould you show the
>> line where the error occurs?
>>
>> -- James
>>
>