Author: Kazu Hirata Date: 2025-06-10T11:27:30-07:00 New Revision: 50313a5f556b9967e7d8eb53ee45f79f0fc5b2b8
URL: https://github.com/llvm/llvm-project/commit/50313a5f556b9967e7d8eb53ee45f79f0fc5b2b8 DIFF: https://github.com/llvm/llvm-project/commit/50313a5f556b9967e7d8eb53ee45f79f0fc5b2b8.diff LOG: [lldb] Fix warnings This patch fixes: lldb/unittests/ABI/AArch64/ABIAArch64Test.cpp:53:67: error: missing field 'value_regs' initializer [-Werror,-Wmissing-field-initializers] third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare] Added: Modified: lldb/unittests/ABI/AArch64/ABIAArch64Test.cpp Removed: ################################################################################ diff --git a/lldb/unittests/ABI/AArch64/ABIAArch64Test.cpp b/lldb/unittests/ABI/AArch64/ABIAArch64Test.cpp index 7ae175a0d3a70..5f9332e3e85bd 100644 --- a/lldb/unittests/ABI/AArch64/ABIAArch64Test.cpp +++ b/lldb/unittests/ABI/AArch64/ABIAArch64Test.cpp @@ -50,12 +50,15 @@ TEST_P(ABIAArch64TestFixture, AugmentRegisterInfo) { ASSERT_TRUE(abi_sp); using Register = DynamicRegisterInfo::Register; - Register pc{ConstString("pc"), ConstString(), ConstString("GPR")}; + Register pc; + pc.name = ConstString("pc"); + pc.alt_name = ConstString(); + pc.set_name = ConstString("GPR"); std::vector<Register> regs{pc}; abi_sp->AugmentRegisterInfo(regs); - ASSERT_EQ(regs.size(), 1); + ASSERT_EQ(regs.size(), 1U); Register new_pc = regs[0]; EXPECT_EQ(new_pc.name, pc.name); EXPECT_EQ(new_pc.set_name, pc.set_name); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits