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
This commit is contained in:
Andree Buschmann 2011-05-13 18:47:42 +00:00
parent 6484b45d71
commit f7808c1fe5
13 changed files with 51 additions and 42 deletions

View file

@ -736,10 +736,12 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
zero, this is disabled. */
if (x->gl_xtick.k_lperb)
{
#ifndef ROCKBOX
float upix, lpix;
if (y2 < y1)
upix = y1, lpix = y2;
else upix = y2, lpix = y1;
#endif
for (i = 0, f = x->gl_xtick.k_point;
f < 0.99 * x->gl_x2 + 0.01*x->gl_x1; i++,
f += x->gl_xtick.k_inc)