diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-13 18:47:42 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-13 18:47:42 +0000 |
| commit | f7808c1fe5578e0d789fe7d9181e3502482507b8 (patch) | |
| tree | f1cf93ff36c5a59e676b1fb9fee3e3c25162e497 /apps/plugins/pdbox/PDa/src/g_array.c | |
| parent | 6484b45d711661c97c5d349065903c40f11ca579 (diff) | |
| download | rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.zip rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.tar.gz rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.tar.bz2 rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.tar.xz | |
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_array.c')
| -rw-r--r-- | apps/plugins/pdbox/PDa/src/g_array.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_array.c b/apps/plugins/pdbox/PDa/src/g_array.c index 484e6fa..529feef 100644 --- a/apps/plugins/pdbox/PDa/src/g_array.c +++ b/apps/plugins/pdbox/PDa/src/g_array.c @@ -245,13 +245,13 @@ void glist_arraydialog(t_glist *parent, t_symbol *name, t_floatarg size, t_floatarg saveit, t_floatarg otherflag) { t_glist *gl; - t_garray *a; + /* t_garray *a; unused */ if (size < 1) size = 1; if (otherflag == 0 || (!(gl = glist_findgraph(parent)))) gl = glist_addglist(parent, &s_, 0, 1, (size > 1 ? size-1 : size), -1, 0, 0, 0, 0); - a = graph_array(gl, sharptodollar(name), &s_float, size, saveit); + /* a = */ graph_array(gl, sharptodollar(name), &s_float, size, saveit); } /* this is called from the properties dialog window for an existing array */ @@ -706,17 +706,22 @@ static void garray_vis(t_gobj *z, t_glist *glist, int vis) else if (!template_find_field(template, gensym("x"), &xonset, &type, &arraytype) || type != DT_FLOAT) { - float firsty, xcum = x->x_firstx; + float xcum = x->x_firstx; int lastpixel = -1, ndrawn = 0; - float yval = 0, xpix; + float xpix; +#ifndef ROCKBOX + float firsty, yval = 0; +#endif int ixpix = 0; #ifndef ROCKBOX sys_vgui(".x%x.c create line \\\n", glist_getcanvas(glist)); #endif for (i = 0; i < x->x_n; i++) { +#ifndef ROCKBOX yval = fixtof(*(t_sample *)(x->x_vec + template->t_n * i * sizeof (t_word) + yonset)); +#endif xpix = glist_xtopixels(glist, xcum); ixpix = xpix + 0.5; if (ixpix != lastpixel) @@ -737,9 +742,7 @@ static void garray_vis(t_gobj *z, t_glist *glist, int vis) else if (ndrawn == 1) sys_vgui("%d %f \\\n", ixpix, glist_ytopixels(glist, yval)); sys_vgui("-tags .x%x.a%x\n", glist_getcanvas(glist), x); -#endif firsty = fixtof(*(t_sample *)(x->x_vec + yonset)); -#ifndef ROCKBOX sys_vgui(".x%x.c create text %f %f -text {%s} -anchor e\ -font -*-courier-bold--normal--%d-* -tags .x%x.a%x\n", glist_getcanvas(glist), |