[tools 2/2] Support for disabling and enabling warnings, handle warning number 2368

Sergei Bolotov bolotov.s.s at yandex.ru
Wed Mar 23 02:25:47 CDT 2016



23.03.2016, 07:25, "Nikolay Sivov" <bunglehead at gmail.com>:
> On 23.03.2016 1:16, Sergei Bolotov wrote:
>>  22.03.2016, 22:39, "Nikolay Sivov" <bunglehead at gmail.com>:
>>>   Duplicate UUID is not a warning 2368, it's an error 2270.
>>>   Could you share a minimal idl you're using to test that?
>>
>>  Calling midl on dlls/oleaut32/tests/test_tlb.idl produces this output:
>>  "midl\oleaut32.dll : warning MIDL2368 : error generating type library,
>>  ignored : Could not set UUID : nn (0x800288C6)". Adding
>>  "midl_pragma warning(disable: 2368)" in file suppress such output.
>
> Why do we care about midl output? And even if there is a reason to,
> parser support to ignore pragma is enough, so you don't need to actually
> support warnings in widl. Is pedantic mode ever enabled explicitly when
> building wine?

As Alexandre mentioned in here:
https://www.winehq.org/pipermail/wine-devel/2015-November/110224.html
the correct way to suppress such warnings would be to implement support
for midl_pragma warning(disable).
-- 
Regards,
Bolotov Sergei



More information about the wine-devel mailing list