From 3c460d2b46d2d2003b20163fb409a5599080604e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 21 Mar 2022 09:08:29 +0100 Subject: [PATCH] squelch unused-parameter warnings --- bird/bird.c | 1 + comport.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bird/bird.c b/bird/bird.c index 8dbd939..c77835f 100644 --- a/bird/bird.c +++ b/bird/bird.c @@ -302,6 +302,7 @@ void bird_setting(bird_t *x, t_symbol *s, int argc, t_atom *argv) int i; const char *cmdnam; long buffer[ B_MAX_CMDDATA ]; + (void)s; /* squelch unused-parameter warning */ if(argc < 1) return; cmdnam = argv[0].a_w.w_symbol->s_name; diff --git a/comport.c b/comport.c index ab3f9da..b8e428e 100644 --- a/comport.c +++ b/comport.c @@ -1276,6 +1276,7 @@ static void comport_list(t_comport *x, t_symbol *s, int argc, t_atom *argv) { unsigned char temp_array[COMPORT_BUF_SIZE];/* arbitrary maximum list length */ int i, count; + (void)s; /* squelch unused-parameter warning */ count = argc; if (argc > COMPORT_BUF_SIZE) @@ -1296,6 +1297,7 @@ static void *comport_new(t_symbol *s, int argc, t_atom *argv) const char *serial_device_prefix; t_float com_num = 0; t_float fbaud = 9600; + (void)s; /* squelch unused-parameter warning */ #ifdef _WIN32 /* According to http://msdn2.microsoft.com/en-us/library/aa363858.aspx To @@ -1703,6 +1705,7 @@ static void comport_print(t_comport *x, t_symbol *s, int argc, t_atom *argv) { static char buf[256]; char *pch = buf; + (void)s; /* squelch unused-parameter warning */ while(argc--) {