Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ecpcitest
proteas
llvm-project
Commits
d13847bb
Commit
d13847bb
authored
Jan 23, 2022
by
Simon Pilgrim
Browse files
[lldb] TerminalState::Save - fix unused variable warning
Non-POSIX target builds don't use the file descriptor
parent
d7aa402b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lldb/source/Host/common/Terminal.cpp
View file @
d13847bb
...
...
@@ -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
()};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment