summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/g_template.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-13 18:47:42 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-13 18:47:42 +0000
commitf7808c1fe5578e0d789fe7d9181e3502482507b8 (patch)
treef1cf93ff36c5a59e676b1fb9fee3e3c25162e497 /apps/plugins/pdbox/PDa/src/g_template.c
parent6484b45d711661c97c5d349065903c40f11ca579 (diff)
downloadrockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.tar.gz
rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.zip
Fix several 'variable set but not used' warnings reported by GCC 6.4.1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_template.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_template.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_template.c b/apps/plugins/pdbox/PDa/src/g_template.c
index e73ca3ef5a..0245158fce 100644
--- a/apps/plugins/pdbox/PDa/src/g_template.c
+++ b/apps/plugins/pdbox/PDa/src/g_template.c
@@ -1398,7 +1398,10 @@ static void plot_vis(t_gobj *z, t_glist *glist,
1398 { 1398 {
1399 char outline[20]; 1399 char outline[20];
1400 int lastpixel = -1, ndrawn = 0; 1400 int lastpixel = -1, ndrawn = 0;
1401 float xsum, yval = 0, wval = 0, xpix; 1401 float xsum, yval = 0, xpix;
1402#ifndef ROCKBOX
1403 float wval = 0;
1404#endif
1402 int ixpix = 0, i; 1405 int ixpix = 0, i;
1403 1406
1404 /* draw the trace */ 1407 /* draw the trace */
@@ -1422,7 +1425,9 @@ static void plot_vis(t_gobj *z, t_glist *glist,
1422 if (yonset >= 0) 1425 if (yonset >= 0)
1423 yval = *(float *)((elem + elemsize * i) + yonset); 1426 yval = *(float *)((elem + elemsize * i) + yonset);
1424 else yval = 0; 1427 else yval = 0;
1428#ifndef ROCKBOX
1425 wval = *(float *)((elem + elemsize * i) + wonset); 1429 wval = *(float *)((elem + elemsize * i) + wonset);
1430#endif
1426 xpix = glist_xtopixels(glist, basex + usexloc); 1431 xpix = glist_xtopixels(glist, basex + usexloc);
1427 ixpix = xpix + 0.5; 1432 ixpix = xpix + 0.5;
1428 if (xonset >= 0 || ixpix != lastpixel) 1433 if (xonset >= 0 || ixpix != lastpixel)
@@ -1447,7 +1452,9 @@ static void plot_vis(t_gobj *z, t_glist *glist,
1447 if (yonset >= 0) 1452 if (yonset >= 0)
1448 yval = *(float *)((elem + elemsize * i) + yonset); 1453 yval = *(float *)((elem + elemsize * i) + yonset);
1449 else yval = 0; 1454 else yval = 0;
1455#ifndef ROCKBOX
1450 wval = *(float *)((elem + elemsize * i) + wonset); 1456 wval = *(float *)((elem + elemsize * i) + wonset);
1457#endif
1451 xpix = glist_xtopixels(glist, basex + usexloc); 1458 xpix = glist_xtopixels(glist, basex + usexloc);
1452 ixpix = xpix + 0.5; 1459 ixpix = xpix + 0.5;
1453 if (xonset >= 0 || ixpix != lastpixel) 1460 if (xonset >= 0 || ixpix != lastpixel)