On Fri, 3 Mar 2006, Mike McCormack wrote:
[...]
They would prefer that we use statement expressions, which are gcc specific,
in our macros. Something like:
Thanks for the explanation.
Sure, having an #ifdef/#else/#endif for each macro is way too painful.
But what about the following:
+#ifn
Francois Gouget wrote:
What are these warnings? What is causing them?
Sorry, should have posted an explanation. The warning comes from code
like this:
char foo(x);
#define bar(x) (int) foo(x)
So for the example you gave from my patch:
#define Header_SetImageList(hwnd,himl) \
(HIMAGELI
On Fri, 3 Mar 2006, Mike McCormack wrote:
ChangeLog:
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)hImageLis