Commit d13847bb authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[lldb] TerminalState::Save - fix unused variable warning

Non-POSIX target builds don't use the file descriptor
parent d7aa402b
......@@ -417,8 +417,8 @@ bool TerminalState::Save(Terminal term, bool save_process_group) {
Clear();
m_tty = term;
if (m_tty.IsATerminal()) {
int fd = m_tty.GetFileDescriptor();
#if LLDB_ENABLE_POSIX
int fd = m_tty.GetFileDescriptor();
m_tflags = ::fcntl(fd, F_GETFL, 0);
#if LLDB_ENABLE_TERMIOS
std::unique_ptr<Terminal::Data> new_data{new Terminal::Data()};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment