summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/g_graph.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_graph.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_graph.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_graph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_graph.c b/apps/plugins/pdbox/PDa/src/g_graph.c
index 39a2993264..eba2f4f3ba 100644
--- a/apps/plugins/pdbox/PDa/src/g_graph.c
+++ b/apps/plugins/pdbox/PDa/src/g_graph.c
@@ -736,10 +736,12 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
736 zero, this is disabled. */ 736 zero, this is disabled. */
737 if (x->gl_xtick.k_lperb) 737 if (x->gl_xtick.k_lperb)
738 { 738 {
739#ifndef ROCKBOX
739 float upix, lpix; 740 float upix, lpix;
740 if (y2 < y1) 741 if (y2 < y1)
741 upix = y1, lpix = y2; 742 upix = y1, lpix = y2;
742 else upix = y2, lpix = y1; 743 else upix = y2, lpix = y1;
744#endif
743 for (i = 0, f = x->gl_xtick.k_point; 745 for (i = 0, f = x->gl_xtick.k_point;
744 f < 0.99 * x->gl_x2 + 0.01*x->gl_x1; i++, 746 f < 0.99 * x->gl_x2 + 0.01*x->gl_x1; i++,
745 f += x->gl_xtick.k_inc) 747 f += x->gl_xtick.k_inc)