Author: Kazu Hirata Date: 2024-11-18T07:01:51-08:00 New Revision: 6e1acdcdc1b33c8d3cccf09b8d38279eef2ba69e
URL: https://github.com/llvm/llvm-project/commit/6e1acdcdc1b33c8d3cccf09b8d38279eef2ba69e DIFF: https://github.com/llvm/llvm-project/commit/6e1acdcdc1b33c8d3cccf09b8d38279eef2ba69e.diff LOG: [lldb] Fix a warning This patch fixes: lldb/source/Host/posix/MainLoopPosix.cpp:64:11: error: unused variable 'bytes_written' [-Werror,-Wunused-variable] Added: Modified: lldb/source/Host/posix/MainLoopPosix.cpp Removed: ################################################################################ diff --git a/lldb/source/Host/posix/MainLoopPosix.cpp b/lldb/source/Host/posix/MainLoopPosix.cpp index 040af480771d42..46993aea9cb103 100644 --- a/lldb/source/Host/posix/MainLoopPosix.cpp +++ b/lldb/source/Host/posix/MainLoopPosix.cpp @@ -65,6 +65,7 @@ static void SignalHandler(int signo, siginfo_t *info, void *) { // We can safely ignore EAGAIN (pipe full), as that means poll will definitely // return. assert(bytes_written == 1 || (bytes_written == -1 && errno == EAGAIN)); + (void)bytes_written; } class MainLoopPosix::RunImpl { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits