Remove warning by open coding WM_ITERATE_ARRAY macro
commitd27ce037805e739dfec0d1e84017d62ff9e03409
authorRodolfo García Peñas <kix@kix.es>
Mon, 7 Oct 2013 22:56:41 +0000 (8 00:56 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 9 Oct 2013 12:02:45 +0000 (9 13:02 +0100)
tree2dc1d024bfb8341187da239d830aca061b85df32
parent014bc52531ec5d554920ce82d3e1046e26f84a3b
Remove warning by open coding WM_ITERATE_ARRAY macro

This patch gets rid of the warning:

switchpanel.c: In function 'wSwitchPanelSelectFirst':
switchpanel.c:673:18: warning: variable 'tmpwin' set but not used [-Wunused-but-set-variable]

by using the body of the WM_ITERATE_ARRAY directly and avoiding the temporary
variable 'tmpwin' which ends up being used only on the LHS inside the macro.
src/switchpanel.c