libc: Remove unused print function from select.cc.

This static inline function is not used anywhere. GCC does not care,
but clang warns about this. Remove the function to allow the code to
compile cleanly with both clang and GCC.

Issue #3985
This commit is contained in:
Piotr Tworek 2021-01-12 00:55:23 +01:00 committed by Norman Feske
parent 53081ac6b3
commit 395a9b5bf5

View File

@ -221,20 +221,6 @@ void Libc::select_notify_from_kernel()
}
static inline void print(Output &output, timeval *tv)
{
if (!tv) {
print(output, "nullptr");
} else {
print(output, "{");
print(output, tv->tv_sec);
print(output, ",");
print(output, tv->tv_usec);
print(output, "}");
}
}
extern "C" __attribute__((weak))
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
struct timeval *tv)