Merge pull request #191 from Habbie/setspeed-warning-unused

avoid "warning: unused parameter" on setspeed stub
This commit is contained in:
Martin Lund 2023-03-20 21:09:06 +01:00 committed by GitHub
commit 4008969ca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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