[PATCH 1/5] msi: Build stub files with -Wno-cast-calling-convention.

Jacek Caban jacek at codeweavers.com
Wed Apr 8 08:36:28 CDT 2020


Hi Chip,

On 08.04.2020 08:05, Chip Davis wrote:
> Clang warns when casting between function pointer types where the
> calling conventions differ; this is of course intended to catch bugs
> that we ourselves have had to work around. But the casts here are
> compatible with what MIDL generates, so there isn't much we can do here
> beyond disabling the warning. This is generated code anyway; it should
> be expected to work.


I think we should try to fix it on widl side. For example, is there any 
reason we can't just use explicit (void*) cast in generated code instead?


Thanks,

Jacek




More information about the wine-devel mailing list