squelch unused-parameter warnings

This commit is contained in:
IOhannes m zmölnig 2022-03-21 09:08:29 +01:00
parent 5a56bbf7cd
commit 3c460d2b46
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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--)
{