From 395a9b5bf5b5805ba3bdf3e389ba92484c1ae3ee Mon Sep 17 00:00:00 2001 From: Piotr Tworek Date: Tue, 12 Jan 2021 00:55:23 +0100 Subject: [PATCH] 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 --- repos/libports/src/lib/libc/select.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/repos/libports/src/lib/libc/select.cc b/repos/libports/src/lib/libc/select.cc index 034ea6a32b..3d98578a5d 100644 --- a/repos/libports/src/lib/libc/select.cc +++ b/repos/libports/src/lib/libc/select.cc @@ -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)