Get rid of simulator build warnings

This commit is contained in:
Oleg Kalachev
2024-10-24 03:50:03 +03:00
parent 8a83d70bb6
commit 378db51de9
2 changed files with 2 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ public:
int read() {
if (available()) {
char c;
::read(STDIN_FILENO, &c, 1); // use raw read to avoid C++ buffering
size_t res = ::read(STDIN_FILENO, &c, 1); // use raw read to avoid C++ buffering
// https://stackoverflow.com/questions/45238997/does-getchar-function-has-its-own-buffer-to-store-remaining-input
return c;
}