diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-04-29 02:13:54 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-28 23:48:38 +0200 |
commit | a6fcf70e2531cb703e0a6caa4da32a2eb9a54c11 (patch) | |
tree | d9dcf56fe0127a680e185eb7afdf14555b2f3d90 /Libraries/LibLine | |
parent | e83300dc276d0b64f528eb210ff933c418458e13 (diff) | |
download | serenity-a6fcf70e2531cb703e0a6caa4da32a2eb9a54c11.zip |
LibLine: Properly mark the result of read() as ignored
Unbreaks the build.
Diffstat (limited to 'Libraries/LibLine')
-rw-r--r-- | Libraries/LibLine/Editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<size_t, 2> 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); |