[NFC][lldb] Silence unused variable warning
authorNathan James <n.james93@hotmail.co.uk>
Sun, 1 Nov 2020 14:37:06 +0000 (14:37 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Sun, 1 Nov 2020 14:37:06 +0000 (14:37 +0000)
lldb/source/Host/common/PseudoTerminal.cpp

index c5f101c..de76e8a 100644 (file)
@@ -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