Commit 305181e
committed
srv: avoid a build warning on non-Linux systems
Due to an ifdef __linux__ we can have an unused variable "tio" on other
systems that produces this warning:
CC src/bt.o
src/bt.c:851:17: warning: unused variable 'tio' [-Wunused-variable]
struct termios tio;
^
1 warning generated.
LD bin/bt
Let's enclose it in the same ifdef.1 parent e78d6c2 commit 305181e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| 851 | + | |
851 | 852 | | |
| 853 | + | |
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
| |||
0 commit comments