This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix bogus function cast warning for functions with common arg subset


On February 23, 2018 5:12:23 PM GMT+01:00, Siddhesh Poyarekar <siddhesh@sourceware.org> wrote:
>On Friday 23 February 2018 09:20 PM, David Malcolm wrote:
>> Do we have a PR open for this yet?
>> 
>> I believe this is an example of where this bit (for the Python case):
>>   https://github.com/imageworks/OpenColorIO/pull/518
>
>There is now:
>
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84531
>
>Siddhesh

I don't see how the function cast is valid. 

I've argued for void (*) () to/from void (*) (int), etc. In the past and that was shot down similarly. This looks like exactly the same thing. 

Richard. 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]