avoid "warning: unused parameter" on setspeed stub

This commit is contained in:
Peter van Dijk 2023-03-20 19:59:18 +00:00
parent 8e253a7b3d
commit b56cd8a66e

View file

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