A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+51 -42
+2 -6
apps/plugins/pdbox/PDa/extra/gcanvas.c
··· 135 135 x->x_obj.te_ypix + x->x_height*i/x->x_ygrid, 136 136 x->x_width, 0); 137 137 } 138 - 138 + #ifndef ROCKBOX 139 139 { 140 140 /* outlets */ 141 141 int n = 3; ··· 143 143 nplus = (n == 1 ? 1 : n-1); 144 144 for (i = 0; i < n; i++) 145 145 { 146 - #ifndef ROCKBOX 147 146 int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; 148 147 if (firsttime) 149 148 sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xo%d\n", ··· 156 155 glist_getcanvas(glist), x, i, 157 156 onset, x->x_obj.te_ypix + x->x_height - 1, 158 157 onset + IOWIDTH, x->x_obj.te_ypix + x->x_height); 159 - #endif /* ROCKBOX */ 160 158 } 161 159 /* inlets */ 162 160 n = 0; 163 161 nplus = (n == 1 ? 1 : n-1); 164 162 for (i = 0; i < n; i++) 165 163 { 166 - #ifndef ROCKBOX 167 164 int onset = x->x_obj.te_xpix + (x->x_width - IOWIDTH) * i / nplus; 168 165 if (firsttime) 169 166 sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %xi%d\n", ··· 176 173 glist_getcanvas(glist), x, i, 177 174 onset, x->x_obj.te_ypix, 178 175 onset + IOWIDTH, x->x_obj.te_ypix + 1); 179 - #endif /* ROCKBOX */ 180 176 } 181 177 } 182 - 178 + #endif /* ROCKBOX */ 183 179 } 184 180 185 181
+4 -3
apps/plugins/pdbox/PDa/extra/hlshelf.c
··· 110 110 void hlshelf_bang(t_hlshelf *x) 111 111 { 112 112 t_atom at[6]; 113 - float c0, c1, c2, d0, d1, d2; /* output coefs */ 113 + /* float c0; unused */ 114 + float c1, c2, d0, d1, d2; /* output coefs */ 114 115 float a1, a2, b1, b2, g1, g2; /* temp coefs */ 115 116 double xf; 116 117 ··· 157 158 } 158 159 159 160 /* form product */ 160 - c0 = g1 * g2 * (float)(exp((double)(x->s_gain1) * 0.05f * 2.302585093f)); ; 161 + /* c0 = g1 * g2 * (float)(exp((double)(x->s_gain1) * 0.05f * 2.302585093f)); unused */ 161 162 c1 = a1 + a2; 162 163 c2 = a1 * a2; 163 164 d0 = 1.0f; ··· 166 167 167 168 if (!hlshelf_check_stability(-c1/d0,-c2/d0,d0/d0,d1/d0,d2/d0)) { 168 169 post("hlshelf: filter unstable -> resetting"); 169 - c0=1.;c1=0.;c2=0.; 170 + /* c0=1.; unused */ c1=0.;c2=0.; 170 171 d0=1.;d1=0.;d2=0.; 171 172 } 172 173
+2 -2
apps/plugins/pdbox/PDa/intern/sfread~.c
··· 114 114 { 115 115 t_sfread* x = (t_sfread*)(w[1]); 116 116 short* buf = x->x_mapaddr; 117 - t_time tmp; 117 + /* t_time tmp; unused */ 118 118 int c = x->x_channels; 119 119 t_time pos = x->x_pos; 120 120 t_sample speed = x->x_speed; ··· 137 137 } 138 138 pos = x->x_skip; 139 139 } 140 - tmp = n*speed; 140 + /* tmp = n*speed; unused */ 141 141 142 142 if (pos + n*speed <= 0) { // playing backwards end 143 143 if (!x->x_loop) {
+2 -2
apps/plugins/pdbox/PDa/intern/sfwrite~.c
··· 137 137 short* tout = out; 138 138 int ret; 139 139 int timebefore,timeafter; 140 - double late; 140 + /* double late; unused */ 141 141 142 142 for (i=0;i < c;i++) { 143 143 in[i] = (t_sample *)(w[2+i]); ··· 161 161 162 162 } 163 163 timeafter = sys_getrealtime(); 164 - late = timeafter - timebefore; 164 + /* late = timeafter - timebefore; unused */ 165 165 166 166 #if 0 167 167 /* OK, we let only 10 ms block here */
+3 -3
apps/plugins/pdbox/PDa/src/d_ugen.c
··· 866 866 t_dspcontext *parent_context = dc->dc_parentcontext; 867 867 float parent_srate; 868 868 int parent_vecsize; 869 - int period, frequency, phase, vecsize; 869 + int period, frequency, /* phase, */ vecsize; 870 870 float srate; 871 871 int chainblockbegin; /* DSP chain onset before block prolog code */ 872 872 int chainblockend; /* and after block epilog code */ ··· 931 931 frequency = (parent_vecsize * realoverlap * upsample)/ 932 932 (vecsize * downsample); 933 933 /* } IOhannes*/ 934 - phase = blk->x_phase; 934 + /* phase = blk->x_phase; */ 935 935 srate = parent_srate * realoverlap * upsample / downsample; 936 936 /* IOhannes */ 937 937 if (period < 1) period = 1; ··· 951 951 vecsize = parent_vecsize; 952 952 downsample = upsample = 1;/* IOhannes */ 953 953 period = frequency = 1; 954 - phase = 0; 954 + /* phase = 0; */ 955 955 if (!parent_context) reblock = 1; 956 956 switched = 0; 957 957 }
+9 -6
apps/plugins/pdbox/PDa/src/g_array.c
··· 245 245 t_floatarg saveit, t_floatarg otherflag) 246 246 { 247 247 t_glist *gl; 248 - t_garray *a; 248 + /* t_garray *a; unused */ 249 249 if (size < 1) 250 250 size = 1; 251 251 if (otherflag == 0 || (!(gl = glist_findgraph(parent)))) 252 252 gl = glist_addglist(parent, &s_, 0, 1, 253 253 (size > 1 ? size-1 : size), -1, 0, 0, 0, 0); 254 - a = graph_array(gl, sharptodollar(name), &s_float, size, saveit); 254 + /* a = */ graph_array(gl, sharptodollar(name), &s_float, size, saveit); 255 255 } 256 256 257 257 /* this is called from the properties dialog window for an existing array */ ··· 706 706 else if (!template_find_field(template, gensym("x"), &xonset, &type, 707 707 &arraytype) || type != DT_FLOAT) 708 708 { 709 - float firsty, xcum = x->x_firstx; 709 + float xcum = x->x_firstx; 710 710 int lastpixel = -1, ndrawn = 0; 711 - float yval = 0, xpix; 711 + float xpix; 712 + #ifndef ROCKBOX 713 + float firsty, yval = 0; 714 + #endif 712 715 int ixpix = 0; 713 716 #ifndef ROCKBOX 714 717 sys_vgui(".x%x.c create line \\\n", glist_getcanvas(glist)); 715 718 #endif 716 719 for (i = 0; i < x->x_n; i++) 717 720 { 721 + #ifndef ROCKBOX 718 722 yval = fixtof(*(t_sample *)(x->x_vec + 719 723 template->t_n * i * sizeof (t_word) + yonset)); 724 + #endif 720 725 xpix = glist_xtopixels(glist, xcum); 721 726 ixpix = xpix + 0.5; 722 727 if (ixpix != lastpixel) ··· 737 742 else if (ndrawn == 1) sys_vgui("%d %f \\\n", ixpix, 738 743 glist_ytopixels(glist, yval)); 739 744 sys_vgui("-tags .x%x.a%x\n", glist_getcanvas(glist), x); 740 - #endif 741 745 firsty = fixtof(*(t_sample *)(x->x_vec + yonset)); 742 - #ifndef ROCKBOX 743 746 sys_vgui(".x%x.c create text %f %f -text {%s} -anchor e\ 744 747 -font -*-courier-bold--normal--%d-* -tags .x%x.a%x\n", 745 748 glist_getcanvas(glist),
+1 -1
apps/plugins/pdbox/PDa/src/g_canvas.c
··· 381 381 #ifdef ROCKBOX 382 382 (void) dummy; 383 383 (void) sel; 384 - int font = 10; 384 + int font __attribute__((unused)) = 10; 385 385 #else /* ROCKBOX */ 386 386 int font = (owner ? owner->gl_font : sys_defaultfont); 387 387 #endif /* ROCKBOX */
+2
apps/plugins/pdbox/PDa/src/g_graph.c
··· 736 736 zero, this is disabled. */ 737 737 if (x->gl_xtick.k_lperb) 738 738 { 739 + #ifndef ROCKBOX 739 740 float upix, lpix; 740 741 if (y2 < y1) 741 742 upix = y1, lpix = y2; 742 743 else upix = y2, lpix = y1; 744 + #endif 743 745 for (i = 0, f = x->gl_xtick.k_point; 744 746 f < 0.99 * x->gl_x2 + 0.01*x->gl_x1; i++, 745 747 f += x->gl_xtick.k_inc)
+8 -1
apps/plugins/pdbox/PDa/src/g_template.c
··· 1398 1398 { 1399 1399 char outline[20]; 1400 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 1405 int ixpix = 0, i; 1403 1406 1404 1407 /* draw the trace */ ··· 1422 1425 if (yonset >= 0) 1423 1426 yval = *(float *)((elem + elemsize * i) + yonset); 1424 1427 else yval = 0; 1428 + #ifndef ROCKBOX 1425 1429 wval = *(float *)((elem + elemsize * i) + wonset); 1430 + #endif 1426 1431 xpix = glist_xtopixels(glist, basex + usexloc); 1427 1432 ixpix = xpix + 0.5; 1428 1433 if (xonset >= 0 || ixpix != lastpixel) ··· 1447 1452 if (yonset >= 0) 1448 1453 yval = *(float *)((elem + elemsize * i) + yonset); 1449 1454 else yval = 0; 1455 + #ifndef ROCKBOX 1450 1456 wval = *(float *)((elem + elemsize * i) + wonset); 1457 + #endif 1451 1458 xpix = glist_xtopixels(glist, basex + usexloc); 1452 1459 ixpix = xpix + 0.5; 1453 1460 if (xonset >= 0 || ixpix != lastpixel)
+12 -12
apps/plugins/pdbox/PDa/src/g_text.c
··· 814 814 /* ---------------- gatom-specific widget functions --------------- */ 815 815 static void gatom_getwherelabel(t_gatom *x, t_glist *glist, int *xp, int *yp) 816 816 { 817 - int x1, y1, x2, y2, width, height; 817 + int x1, y1, x2, y2 /*, width, height */; 818 818 text_getrect(&x->a_text.te_g, glist, &x1, &y1, &x2, &y2); 819 - width = x2 - x1; 820 - height = y2 - y1; 819 + /* width = x2 - x1; */ 820 + /* height = y2 - y1; */ 821 821 if (x->a_wherelabel == ATOM_LABELLEFT) 822 822 { 823 823 *xp = x1 - 3 - ··· 1265 1265 void glist_drawiofor(t_glist *glist, t_object *ob, int firsttime, 1266 1266 char *tag, int x1, int y1, int x2, int y2) 1267 1267 { 1268 - int n = obj_noutlets(ob), nplus = (n == 1 ? 1 : n-1), i; 1269 1268 #ifdef ROCKBOX 1270 1269 (void) glist; 1270 + (void) ob; 1271 1271 (void) firsttime; 1272 1272 (void) tag; 1273 1273 (void) x1; ··· 1275 1275 (void) x2; 1276 1276 (void) y2; 1277 1277 #else /* ROCKBOX */ 1278 + int n = obj_noutlets(ob), i; 1278 1279 int width = x2 - x1; 1279 - #endif /* ROCKBOX */ 1280 + int nplus = (n == 1 ? 1 : n-1); 1281 + 1280 1282 for (i = 0; i < n; i++) 1281 1283 { 1282 - #ifndef ROCKBOX 1283 1284 int onset = x1 + (width - IOWIDTH) * i / nplus; 1284 1285 if (firsttime) 1285 1286 sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %so%d\n", ··· 1292 1293 glist_getcanvas(glist), tag, i, 1293 1294 onset, y2 - 1, 1294 1295 onset + IOWIDTH, y2); 1295 - #endif /* ROCKBOX */ 1296 1296 } 1297 + 1297 1298 n = obj_ninlets(ob); 1298 1299 nplus = (n == 1 ? 1 : n-1); 1299 1300 for (i = 0; i < n; i++) 1300 1301 { 1301 - #ifndef ROCKBOX 1302 1302 int onset = x1 + (width - IOWIDTH) * i / nplus; 1303 1303 if (firsttime) 1304 1304 sys_vgui(".x%x.c create rectangle %d %d %d %d -tags %si%d\n", ··· 1311 1311 glist_getcanvas(glist), tag, i, 1312 1312 onset, y1, 1313 1313 onset + IOWIDTH, y1 + EXTRAPIX); 1314 - #endif /* ROCKBOX */ 1315 1314 } 1315 + #endif /* ROCKBOX */ 1316 1316 } 1317 1317 1318 1318 void text_drawborder(t_text *x, t_glist *glist, 1319 1319 char *tag, int width2, int height2, int firsttime) 1320 1320 { 1321 1321 t_object *ob; 1322 - int x1, y1, x2, y2, width, height; 1322 + int x1, y1, x2, y2 /* , width, height */; 1323 1323 1324 1324 #ifdef ROCKBOX 1325 1325 (void) width2; ··· 1327 1327 #endif 1328 1328 1329 1329 text_getrect(&x->te_g, glist, &x1, &y1, &x2, &y2); 1330 - width = x2 - x1; 1331 - height = y2 - y1; 1330 + /* width = x2 - x1; */ 1331 + /* height = y2 - y1; */ 1332 1332 if (x->te_type == T_OBJECT) 1333 1333 { 1334 1334 #ifndef ROCKBOX
+2 -2
apps/plugins/pdbox/PDa/src/m_binbuf.c
··· 96 96 { 97 97 /* it's an atom other than a comma or semi */ 98 98 char c; 99 - int floatstate = 0, slash = 0, lastslash = 0, 99 + int floatstate = 0, slash = 0, /* lastslash = 0, */ 100 100 firstslash = (*textp == '\\'); 101 101 bufp = buf; 102 102 do 103 103 { 104 104 c = *bufp = *textp++; 105 - lastslash = slash; 105 + /* lastslash = slash; */ 106 106 slash = (c == '\\'); 107 107 108 108 if (floatstate >= 0)
+2 -2
apps/plugins/pdbox/PDa/src/m_obj.c
··· 655 655 656 656 int obj_issignaloutlet(t_object *x, int m) 657 657 { 658 - int n; 658 + /* int n; */ 659 659 t_outlet *o2; 660 - for (o2 = x->ob_outlet, n = 0; o2 && m--; o2 = o2->o_next); 660 + for (o2 = x->ob_outlet /* , n = 0 */; o2 && m--; o2 = o2->o_next); 661 661 return (o2 && (o2->o_sym == &s_signal)); 662 662 } 663 663
+2 -2
apps/plugins/pdbox/PDa/src/x_connective.c
··· 647 647 (void) s; 648 648 #endif 649 649 t_pack *x = (t_pack *)pd_new(pack_class); 650 - t_atom defarg[2], *ap, *vec, *vp; 650 + t_atom defarg[2], *ap, /* *vec, */ *vp; 651 651 t_gpointer *gp; 652 652 int nptr = 0; 653 653 int i; ··· 660 660 } 661 661 662 662 x->x_n = argc; 663 - vec = x->x_vec = (t_atom *)getbytes(argc * sizeof(*x->x_vec)); 663 + /* vec = */ x->x_vec = (t_atom *)getbytes(argc * sizeof(*x->x_vec)); 664 664 x->x_outvec = (t_atom *)getbytes(argc * sizeof(*x->x_outvec)); 665 665 666 666 for (i = argc, ap = argv; i--; ap++)