mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
avoid "warning: unused parameter" on setspeed stub
This commit is contained in:
parent
8e253a7b3d
commit
b56cd8a66e
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue