PATCH: aliasing problems in ole32

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 29 18:27:49 CDT 2003


Marcus Meissner <marcus at jet.franken.de> writes:

> Changelog:
> 	Fixed some warnings from newer gccs in regards to
> 	pointer aliasing problems by using unions instead of
> 	using (void**)&ptr constructs.

All these unions are ugly IMO, it would be better to use an
intermediate pointer instead, something like:

  void *ptr;
  ISomething *iface;

  IUnknown_QueryInterface(...,&ptr);
  iface = ptr;


-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list