diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-01-08 22:55:02 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-01-08 22:55:02 +0000 |
| commit | 0e3299dc60f038ab6b7224206adb27aa0582865d (patch) | |
| tree | c528e952ba61f5b2bd67f9d859bfb6df2b071124 | |
| parent | bad24064090cddab99eebaa143e8af159a1f3d5b (diff) | |
| download | bcm5719-llvm-0e3299dc60f038ab6b7224206adb27aa0582865d.tar.gz bcm5719-llvm-0e3299dc60f038ab6b7224206adb27aa0582865d.zip | |
Fix unused private field warning.
Summary: The member is private and unused if HAVE_LIBCOMPRESSION is undefined, which triggers Clang's -Wunused-private-field warning.
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D56458
llvm-svn: 350675
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index e0525bdcf34..b630fae87c3 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -69,8 +69,9 @@ GDBRemoteCommunication::GDBRemoteCommunication(const char *comm_name, m_echo_number(0), m_supports_qEcho(eLazyBoolCalculate), m_history(512), m_send_acks(true), m_compression_type(CompressionType::None), m_listen_url(), m_decompression_scratch_type(CompressionType::None), - m_decompression_scratch(nullptr) -{ + m_decompression_scratch(nullptr) { + // Unused unless HAVE_LIBCOMPRESSION is defined. + (void)m_decompression_scratch_type; } //---------------------------------------------------------------------- |

