From 68fbc8eec38d2930b60e01ffb2cbf297eac658fb Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 3 Nov 2023 14:04:26 +0000 Subject: [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. --- lldb/source/DataFormatters/StringPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/DataFormatters/StringPrinter.cpp') 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( &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; -- cgit v1.2.3