avoid "warning: unused parameter" on setspeed stub

This commit is contained in:
Peter van Dijk 2023-03-20 19:59:18 +00:00
parent f6905b4213
commit c16e004757

View file

@ -33,6 +33,7 @@
#include <IOKit/serial/ioss.h>
#endif
#include "misc.h"
#ifdef HAVE_TERMIOS2
int setspeed(int fd, int baudrate)
@ -62,6 +63,9 @@ int setspeed(int fd, int baudrate)
#else
int setspeed(int fd, int baudrate)
{
UNUSED(fd);
UNUSED(baudrate);
errno = EINVAL;
return -1;
}