Skip to content

Commit 8df5a37

Browse files
[lldb] Fix a warning
This patch fixes: lldb/source/Plugins/ABI/PowerPC/ABISysV_ppc64.cpp:839:7: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
1 parent 9f0e59f commit 8df5a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ABI/PowerPC/ABISysV_ppc64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ class ReturnValueExtractor {
836836
for (uint32_t i = 0; i < n; i++) {
837837
std::string name;
838838
uint32_t size;
839-
GetChildType(i, name, size);
839+
(void)GetChildType(i, name, size);
840840
// NOTE: the offset returned by GetChildCompilerTypeAtIndex()
841841
// can't be used because it never considers alignment bytes
842842
// between struct fields.

0 commit comments

Comments
 (0)