You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:543:35: style: Expression is always false because 'else if' condition matches previous condition at line 535. [multiCondition]
Source code is
if (m_compression_type == CompressionType::LZFSE)
...
else if (m_compression_type == CompressionType::LZFSE)
The text was updated successfully, but these errors were encountered:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:543:35: style: Expression is always false because 'else if' condition matches previous condition at line 535. [multiCondition]
Source code is
if (m_compression_type == CompressionType::LZFSE)
...
else if (m_compression_type == CompressionType::LZFSE)
xgupta
added a commit
to xgupta/llvm-project
that referenced
this issue
Jun 8, 2024
The `else if` condition for checking `m_compression_type` is redundant as it matches with a previous `if` condition, making the expression always false.
Reported by cppcheck as a possible cut-and-paste error.
Caught by cppcheck -
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:543:35: style: Expression is always false because 'else if' condition matches previous condition at line 535. [multiCondition]
Fixllvm#91222
The `else if` condition for checking `m_compression_type` is redundant
as it matches with a previous `if` condition, making the expression
always false. Reported by cppcheck as a possible cut-and-paste error.
Caught by cppcheck -
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:543:35:
style: Expression is always false because 'else if' condition matches
previous condition at line 535. [multiCondition]
Fix#91222
Static analyser cppcheck says:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:543:35: style: Expression is always false because 'else if' condition matches previous condition at line 535. [multiCondition]
Source code is
The text was updated successfully, but these errors were encountered: