mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
pdbox: Fix up a pile of set-but-unused variable warnings with GCC16
Change-Id: I8de93d879ade61251fdde205353120a8e583b157
This commit is contained in:
parent
95df5fdec0
commit
cfbbf5b488
4 changed files with 107 additions and 114 deletions
|
|
@ -809,8 +809,10 @@ void canvas_vis(t_canvas *x, t_floatarg f)
|
|||
}
|
||||
else /* make invisible */
|
||||
{
|
||||
#ifndef ROCKBOX
|
||||
int i;
|
||||
t_canvas *x2;
|
||||
#endif
|
||||
if (!x->gl_havewindow)
|
||||
{
|
||||
/* bug workaround -- a graph in a visible patch gets "invised"
|
||||
|
|
@ -828,10 +830,8 @@ void canvas_vis(t_canvas *x, t_floatarg f)
|
|||
canvas_create_editor(x, 0);
|
||||
#ifndef ROCKBOX
|
||||
sys_vgui("destroy .x%x\n", x);
|
||||
#endif
|
||||
for (i = 1, x2 = x; x2; x2 = x2->gl_next, i++)
|
||||
;
|
||||
#ifndef ROCKBOX
|
||||
sys_vgui(".mbar.find delete %d\n", i);
|
||||
#endif
|
||||
/* if we're a graph on our parent, and if the parent exists
|
||||
|
|
@ -1602,4 +1602,3 @@ void g_canvas_setup(void)
|
|||
g_editor_setup();
|
||||
g_readwrite_setup();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -944,8 +944,11 @@ static void curve_vis(t_gobj *z, t_glist *glist,
|
|||
int vis)
|
||||
{
|
||||
t_curve *x = (t_curve *)z;
|
||||
int i, n = x->x_npoints;
|
||||
int n = x->x_npoints;
|
||||
#ifndef ROCKBOX
|
||||
int i;
|
||||
t_fielddesc *f = x->x_vec;
|
||||
#endif
|
||||
|
||||
#ifdef ROCKBOX
|
||||
(void) glist;
|
||||
|
|
@ -981,18 +984,14 @@ static void curve_vis(t_gobj *z, t_glist *glist,
|
|||
#ifndef ROCKBOX
|
||||
else sys_vgui(".x%x.c create line\\\n",
|
||||
glist_getcanvas(glist));
|
||||
#endif
|
||||
for (i = 0, f = x->x_vec; i < n; i++, f += 2)
|
||||
{
|
||||
#ifndef ROCKBOX
|
||||
float xloc = glist_xtopixels(glist,
|
||||
basex + fielddesc_getfloat(f, template, data, 1));
|
||||
float yloc = glist_ytopixels(glist,
|
||||
basey + fielddesc_getfloat(f+1, template, data, 1));
|
||||
sys_vgui("%d %d\\\n", (int)xloc, (int)yloc);
|
||||
#endif
|
||||
}
|
||||
#ifndef ROCKBOX
|
||||
sys_vgui("-width %f\\\n",
|
||||
fielddesc_getfloat(&x->x_width, template, data, 1));
|
||||
if (flags & CLOSED) sys_vgui("-fill %s -outline %s\\\n",
|
||||
|
|
@ -1896,6 +1895,3 @@ void g_template_setup(void)
|
|||
plot_setup();
|
||||
drawnumber_setup();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -448,10 +448,10 @@ int canvas_getdollarzero( void);
|
|||
|
||||
t_symbol *binbuf_realizedollsym(t_symbol *s, int ac, t_atom *av, int tonew)
|
||||
{
|
||||
int argno = atol(s->s_name), lastnum;
|
||||
int argno = atol(s->s_name)/*, lastnum */;
|
||||
char buf[MAXPDSTRING], c, *sp;
|
||||
for (lastnum = 0, sp = s->s_name; ((c = *sp) && c >= '0' && c <= '9');
|
||||
sp++, lastnum++)
|
||||
for (/*lastnum = 0,*/ sp = s->s_name; ((c = *sp) && c >= '0' && c <= '9');
|
||||
sp++/*, lastnum++*/)
|
||||
if (!c || argno < 0 || argno > ac)
|
||||
{
|
||||
if (!tonew)
|
||||
|
|
@ -1330,4 +1330,3 @@ void glob_evalfile(t_pd *ignore, t_symbol *name, t_symbol *dir)
|
|||
pd_doloadbang();
|
||||
canvas_resume_dsp(dspstate);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -669,21 +669,21 @@ int obj_issignaloutlet(t_object *x, int m)
|
|||
|
||||
t_sample *obj_findsignalscalar(t_object *x, int m)
|
||||
{
|
||||
int n = 0;
|
||||
// int n = 0;
|
||||
t_inlet *i;
|
||||
if (x->ob_pd->c_firstin && x->ob_pd->c_floatsignalin)
|
||||
{
|
||||
if (!m--)
|
||||
return (x->ob_pd->c_floatsignalin > 0 ?
|
||||
(t_sample *)(((char *)x) + x->ob_pd->c_floatsignalin) : 0);
|
||||
n++;
|
||||
// n++;
|
||||
}
|
||||
for (i = x->ob_inlet; i; i = i->i_next, m--)
|
||||
if (i->i_symfrom == &s_signal)
|
||||
{
|
||||
if (m == 0)
|
||||
return (&i->i_un.iu_floatsignalvalue);
|
||||
n++;
|
||||
// n++;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
|
@ -707,4 +707,3 @@ int outlet_getsignalindex(t_outlet *x)
|
|||
if (o->o_sym == &s_signal) n++;
|
||||
return (n);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue