Skip to content

Commit

Permalink
avoid "warning: unused parameter" on setspeed stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Mar 20, 2023
1 parent 8e253a7 commit b56cd8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/setspeed.c
Expand Up @@ -33,6 +33,7 @@
#include <IOKit/serial/ioss.h>
#endif

#include "misc.h"

#ifdef HAVE_TERMIOS2
int setspeed(int fd, int baudrate)
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b56cd8a

Please sign in to comment.