WINECFG: Eliminate some gcc 4.1 warnings caused by casts in
fgouget at free.fr
Fri Mar 3 02:44:36 CST 2006
On Fri, 3 Mar 2006, Mike McCormack wrote:
> Eliminate some gcc 4.1 warnings caused by casts in macros.
What are these warnings? What is causing them?
> - TreeView_SetImageList(tree, hImageList, TVSIL_STATE);
> + SendMessageW( tree, LVM_SETIMAGELIST, TVSIL_STATE, (LPARAM)hImageList );
Do we really have to give up on the macros and use SendMessage directly
to avoid the warnings? If we do, then I would say this means the macros
are broken because it means Winelib users will get the same problem we
do and will have to modify their code or live with gobs of warnings.
So, is there a way to fix the macros?
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
Avoid the Gates of Hell - use Linux.
More information about the wine-devel