On Sat, 05 Oct 2013, Iain Patterson escribió:
> Quoth Rodolfo García Peñas,
>
> >I am out now.
> >
> >Replace the variable with (void *)?
>
> Just elicits the same warning, unfortunately.
Then, why not forget the macro and include the final code? This code is the
same, but without the warning.
Cheers,
kix
---8<---
diff --git a/src/switchpanel.c b/src/switchpanel.c
index 0b5b037..0d7a3d1 100644
--- a/src/switchpanel.c
+++ b/src/switchpanel.c
@@ -670,7 +670,7 @@ WWindow *wSwitchPanelSelectNext(WSwitchPanel *panel, int
back, int ignore_minimi
WWindow *wSwitchPanelSelectFirst(WSwitchPanel *panel, int back)
{
- WWindow *wwin, *tmpwin;
+ WWindow *wwin;
int count = WMGetArrayItemCount(panel->windows);
char *title;
int i;
@@ -690,9 +690,9 @@ WWindow *wSwitchPanelSelectFirst(WSwitchPanel *panel, int
back)
title = wwin->frame->title;
if (panel->win) {
- WM_ITERATE_ARRAY(panel->windows, tmpwin, i) {
+ for (WMArrayFirst(panel->windows, &(i)); (i) != WANotFound;
WMArrayNext(panel->windows, &(i)))
changeImage(panel, i, i == panel->current, False,
False);
- }
+
drawTitle(panel, panel->current, title);
}
---8<---
--
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
--
To unsubscribe, send mail to [email protected].