From: Jacek Caban Subject: Re: [PATCH 1/5] msi: Build stub files with -Wno-cast-calling-convention. Message-Id: <9ab76af1-13c1-fa41-573b-2dc92047f968@codeweavers.com> Date: Wed, 8 Apr 2020 15:36:28 +0200 In-Reply-To: <20200408060550.42352-1-cdavis@codeweavers.com> References: <20200408060550.42352-1-cdavis@codeweavers.com> 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