From fc89459187380d862daf249c95ed389e3fb6c0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 3 Jun 2013 16:07:32 +0000 Subject: declare unused parameters as such rather than doing a dummy-usage svn path=/trunk/externals/zexy/; revision=17144 --- src/0x2e.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/0x2e.c') diff --git a/src/0x2e.c b/src/0x2e.c index 43b6444..d138ed7 100644 --- a/src/0x2e.c +++ b/src/0x2e.c @@ -35,10 +35,9 @@ typedef struct _scalmul } t_scalmul; -static void scalmul_lst2(t_scalmul *x, t_symbol *s, int argc, t_atom *argv) +static void scalmul_lst2(t_scalmul *x, t_symbol *UNUSED(s), int argc, t_atom *argv) { t_float *fp; - ZEXY_USEVAR(s); if (x->n2 != argc) { freebytes(x->buf2, x->n2 * sizeof(t_float)); x->n2 = argc; @@ -48,12 +47,11 @@ static void scalmul_lst2(t_scalmul *x, t_symbol *s, int argc, t_atom *argv) while(argc--)*fp++=atom_getfloat(argv++); } -static void scalmul_lst(t_scalmul *x, t_symbol *s, int argc, t_atom *argv) +static void scalmul_lst(t_scalmul *x, t_symbol* UNUSED(s), int argc, t_atom *argv) { t_float *fp; t_atom *ap; int n; - ZEXY_USEVAR(s); if (argc){ if (x->n1 != argc) { @@ -120,10 +118,9 @@ static void scalmul_free(t_scalmul *x) freebytes(x->buf2, sizeof(t_float)*x->n2); } -static void *scalmul_new(t_symbol *s, int argc, t_atom *argv) +static void *scalmul_new(t_symbol* UNUSED(s), int argc, t_atom *argv) { t_scalmul *x; - ZEXY_USEVAR(s); if (argc-1){ x = (t_scalmul *)pd_new(scalmul_class); inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("list"), gensym("")); -- cgit v1.2.1