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 f6905b4 commit 85bc149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setspeed.c
Expand Up @@ -60,7 +60,7 @@ int setspeed(int fd, int baudrate)
}

#else
int setspeed(int fd, int baudrate)
int setspeed(int /* fd */, int /* baudrate */)
{
errno = EINVAL;
return -1;
Expand Down

0 comments on commit 85bc149

Please sign in to comment.