From a6fcf70e2531cb703e0a6caa4da32a2eb9a54c11 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 29 Apr 2020 02:13:54 +0430 Subject: [PATCH] LibLine: Properly mark the result of read() as ignored Unbreaks the build. --- Libraries/LibLine/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp index b2d37e7e76..12a750cafe 100644 --- a/Libraries/LibLine/Editor.cpp +++ b/Libraries/LibLine/Editor.cpp @@ -1049,7 +1049,7 @@ Vector Editor::vt_dsr() more_junk_to_read = false; (void)select(1, &readfds, nullptr, nullptr, &timeout); if (FD_ISSET(0, &readfds)) { - read(0, buf, 16); + (void)read(0, buf, 16); more_junk_to_read = true; } } while (more_junk_to_read);