[Lldb-commits] [lldb] ba447f3 - [NFC][lldb] Silence unused variable warning

Nathan James via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 1 06:37:26 PST 2020


Author: Nathan James
Date: 2020-11-01T14:37:06Z
New Revision: ba447f38f6e53e5de68fa264797690b74cb750c0

URL: https://github.com/llvm/llvm-project/commit/ba447f38f6e53e5de68fa264797690b74cb750c0
DIFF: https://github.com/llvm/llvm-project/commit/ba447f38f6e53e5de68fa264797690b74cb750c0.diff

LOG: [NFC][lldb] Silence unused variable warning

Added: 
    

Modified: 
    lldb/source/Host/common/PseudoTerminal.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/PseudoTerminal.cpp b/lldb/source/Host/common/PseudoTerminal.cpp
index c5f101caffe3..de76e8ab4f68 100644
--- a/lldb/source/Host/common/PseudoTerminal.cpp
+++ b/lldb/source/Host/common/PseudoTerminal.cpp
@@ -106,6 +106,7 @@ std::string PseudoTerminal::GetSecondaryName() const {
   char buf[PATH_MAX];
   buf[0] = '\0';
   int r = ptsname_r(m_primary_fd, buf, sizeof(buf));
+  (void)r;
   assert(r == 0);
   return buf;
 #else


        


More information about the lldb-commits mailing list