-
Notifications
You must be signed in to change notification settings - Fork 342
[lldb] Fix latent compiler warnings #1775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -496,8 +496,8 @@ bool ThreadPlanCallFunction::BreakpointsExplainStop() { | |
#ifdef LLDB_ENABLE_SWIFT | ||
ConstString persistent_variable_name( | ||
persistent_state->GetNextPersistentVariableName(/*is_error*/ true)); | ||
if (m_return_valobj_sp = SwiftLanguageRuntime::CalculateErrorValue( | ||
frame_sp, persistent_variable_name)) { | ||
if ((m_return_valobj_sp = SwiftLanguageRuntime::CalculateErrorValue( | ||
frame_sp, persistent_variable_name))) { | ||
Comment on lines
+499
to
+500
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another case of assignment inside an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the problem here that it's not a declaration? I.e., would There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct, a declaration would not trigger the warning. I don't know the history, but it seems clang uses additional parenthesis as a way of saying "this assignment inside an |
||
|
||
DataExtractor data; | ||
Status data_error; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the
case
s in this switch use a fallthrough. Adrian do you know if it's correct for this one to be a return, not a fall through?