On 8/21/2016 11:17 PM, Martin Storsjö wrote:
> On Sun, 21 Aug 2016, David Wohlferd wrote:
>
>> To my surprise, these two statements have (slightly) different meanings:
>>
>>   STDAPI MFUnregisterPlatformFromMMCSS ();
>>   STDAPI MFUnregisterPlatformFromMMCSS (void);
>>
>> And clang complains about it (warning: function with no prototype cannot use
>> the stdcall calling convention).
> Yes - the former means any number of parameters.

I don't think I've ever seen this used this way.  I'm ok with that.

>> I have added 'void' every place clang complained (attached).
> The patch seems fine to me, assuming these functions really take no
> parameters.

I'd be tempted to just say "stop doing that" if someone was doing this 
intentionally, but I did check.

dw

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to