Three uses of try_lock intentionally ignore the result. Make that
explicit with a void cast.
Add what appears to be a missing return in the clang expression parser
code. It's a functional change, but presumably the right one.
Paths
| Differential D70281
Fix -Wunused-result warnings in LLDB ClosedPublic Authored by rnk on Nov 14 2019, 3:29 PM.
Details
Summary Three uses of try_lock intentionally ignore the result. Make that Add what appears to be a missing return in the clang expression parser
Diff Detail
Event TimelineComment Actions LGTM. It's too bad that pattern is repeated three times, including the explanatory comment. This revision is now accepted and ready to land.Nov 14 2019, 3:50 PM Comment Actions There's a PP above each instance of this code explaining why it's okay if we don't get the API lock, since that's a bit of a tricky point. So if you want to add a comment, it would be better to say "see explanation above". Closed by commit rG4d23764dddc2: Fix -Wunused-result warnings in LLDB (authored by rnk). · Explain WhyNov 15 2019, 4:43 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 229667 lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
|