[2/6] widl: Ignore assigment of a duplicate uuid.

Huw Davies huw at codeweavers.com
Mon Oct 26 07:31:32 CDT 2015

On Mon, Oct 26, 2015 at 07:02:57PM +0800, Dmitry Timoshkov wrote:
> Huw Davies <huw at codeweavers.com> wrote:
> > On Thu, Oct 15, 2015 at 08:46:46PM +0800, Dmitry Timoshkov wrote:
> > > MSDN KB285146 article describes this behaviour, and the tests in the last
> > > patch confirm that.
> > 
> > That article also mentions that the warning doesn't occur when the udt is
> > an enum (and indeed midl doesn't issue a warning in this case).  We should
> > do likewise.
> I think that it's just an omission on the midl side that it doesn't emit
> a warning for an enum, because actually midl handles enums same way as unions
> and structs: duplicate uuid is ignored. I think that a warning in that case
> reflects real behaviour and should be printed.

I guess I don't care too much on this point.

However, we are getting these warnings during a Wine build which I think
should be investigated / silenced before this patch is committed.

../tools/widl/widl -o stdole2.tlb -m32 -I. -I../include -D__WINESRC__ stdole2.idl
warning: duplicate uuid {00020430-0000-0000-c000-000000000046}
warning: duplicate uuid {00020400-0000-0000-c000-000000000046}

These are most likely due to the add_dispatch() stuff, so we should probably
just silience the warning for these uuids.

../../tools/widl/widl -o msxml3_v1_t.res -m32 -I. -I../../include -I/usr/include/libxml2 -D__WINESRC__ \
warning: duplicate uuid {50ea08b4-dd1b-4664-9a50-c2f40f4bd79a}
(plus the same warnings in other msxml* directories).

This is ISchema.  Not sure why this is happening.

../../tools/widl/widl -o winhttp_tlb_t.res -m32 -I. -I../../include -D__WINESRC__ winhttp_tlb.idl
warning: duplicate uuid {12782009-fe90-4877-9730-e5e183669b19}
warning: duplicate uuid {9d8a6df8-13de-4b1f-a330-67c719d62514}

These are enums and so would go away if we followed midl.


More information about the wine-devel mailing list