[Lldb-commits] [lldb] 220abb0 - [lldb][Utility] Fix GCC suggest braces warning for checksum value

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 9 04:38:09 PST 2023


Author: David Spickett
Date: 2023-11-09T12:38:01Z
New Revision: 220abb02cb4684d2856ca1a463a531215ffeafd2

URL: https://github.com/llvm/llvm-project/commit/220abb02cb4684d2856ca1a463a531215ffeafd2
DIFF: https://github.com/llvm/llvm-project/commit/220abb02cb4684d2856ca1a463a531215ffeafd2.diff

LOG: [lldb][Utility] Fix GCC suggest braces warning for checksum value

[4314/5686] Building CXX object tools/lldb/sou...lity/CMakeFiles/lldbUtility.dir/Checksum.cpp.o
<...>/Checksum.cpp:43:46: warning: suggest braces around initialization of subobject [-Wmissing-braces]
llvm::MD5::MD5Result Checksum::g_sentinel = {0, 0, 0, 0, 0, 0, 0, 0,
                                             ^~~~~~~~~~~~~~~~~~~~~~~
                                             {

Added: 
    

Modified: 
    lldb/source/Utility/Checksum.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Utility/Checksum.cpp b/lldb/source/Utility/Checksum.cpp
index a7ad4759f1be809..8943b4e1285208e 100644
--- a/lldb/source/Utility/Checksum.cpp
+++ b/lldb/source/Utility/Checksum.cpp
@@ -40,5 +40,5 @@ std::string Checksum::digest() const {
   return std::string(m_checksum.digest());
 }
 
-llvm::MD5::MD5Result Checksum::g_sentinel = {0, 0, 0, 0, 0, 0, 0, 0,
-                                             0, 0, 0, 0, 0, 0, 0, 0};
+llvm::MD5::MD5Result Checksum::g_sentinel = {
+    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};


        


More information about the lldb-commits mailing list