[Lldb-commits] [PATCH] D56458: Fix unused private field warning.
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 8 14:54:04 PST 2019
teemperor created this revision.
Herald added a subscriber: lldb-commits.
The member is private and unused if HAVE_LIBCOMPRESSION is undefined, which triggers Clang's -Wunused-private-field warning.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D56458
Files:
source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Index: source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
===================================================================
--- source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -69,8 +69,9 @@
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;
}
//----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56458.180748.patch
Type: text/x-patch
Size: 764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190108/cf34153c/attachment.bin>
More information about the lldb-commits
mailing list