fix getch_ to explicitly ignore read() return value

This commit is contained in:
Lion Kortlepel
2022-09-26 12:20:07 +02:00
parent b145c8159e
commit 988f19fd00

View File

@@ -50,7 +50,7 @@ TEST_CASE("init and reset termios") {
static char getch_(int echo) {
char ch;
initTermios(echo);
read(STDIN_FILENO, &ch, 1);
(void)read(STDIN_FILENO, &ch, 1);
resetTermios();
return ch;
}