forked from OSchip/llvm-project
[lldb] Fix an unused function warning
This patch fixes: .../llvm-project/lldb/source/Host/common/PseudoTerminal.cpp:106:20: error: unused function 'use_ptsname' [-Werror,-Wunused-function]
This commit is contained in:
parent
0c8fdd7230
commit
4391625255
|
@ -103,6 +103,7 @@ llvm::Error PseudoTerminal::OpenSecondary(int oflag) {
|
|||
std::error_code(errno, std::generic_category()));
|
||||
}
|
||||
|
||||
#if !HAVE_PTSNAME_R || defined(__APPLE__)
|
||||
static std::string use_ptsname(int fd) {
|
||||
static std::mutex mutex;
|
||||
std::lock_guard<std::mutex> guard(mutex);
|
||||
|
@ -110,6 +111,7 @@ static std::string use_ptsname(int fd) {
|
|||
assert(r != nullptr);
|
||||
return r;
|
||||
}
|
||||
#endif
|
||||
|
||||
std::string PseudoTerminal::GetSecondaryName() const {
|
||||
assert(m_primary_fd >= 0);
|
||||
|
|
Loading…
Reference in New Issue