diff options
| author | David Spickett <david.spickett@linaro.org> | 2023-11-03 14:04:26 +0000 |
|---|---|---|
| committer | David Spickett <david.spickett@linaro.org> | 2023-11-03 14:20:05 +0000 |
| commit | 68fbc8eec38d2930b60e01ffb2cbf297eac658fb (patch) | |
| tree | 8dbd066fcba5221347ddde59bf3b2fb09ba9b57b /lldb/source/DataFormatters/StringPrinter.cpp | |
| parent | ee9220c8e3fe3d738b0e84f706b789326d912937 (diff) | |
[lldb][NFC] Use UNUSED_IF_ASSERT_DISABLED instead of (void) cast
Uses of (void) remain where they are for purposes other than an
assert variable.
Diffstat (limited to 'lldb/source/DataFormatters/StringPrinter.cpp')
| -rw-r--r-- | lldb/source/DataFormatters/StringPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/StringPrinter.cpp b/lldb/source/DataFormatters/StringPrinter.cpp index 4b57e87b4ccd..ab07c74fd185 100644 --- a/lldb/source/DataFormatters/StringPrinter.cpp +++ b/lldb/source/DataFormatters/StringPrinter.cpp @@ -183,7 +183,7 @@ DecodedCharBuffer GetPrintableImpl<StringElementType::UTF8>( &buffer_for_conversion, buffer_end, &codepoint, llvm::strictConversion); assert(result == llvm::conversionOK && "Failed to convert legal utf8 sequence"); - (void)result; + UNUSED_IF_ASSERT_DISABLED(result); // The UTF8 helper always advances by the utf8 encoded length. const unsigned utf8_encoded_len = buffer_for_conversion - buffer; |
