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
f6905b4213
commit
c16e004757
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue