Skip to content

Commit

Permalink
cppcheck: Disable "identical inner condition is always true" warning.
Browse files Browse the repository at this point in the history
The second check occurs after unlocking and relocking a lock, so the
value of the variable may have been changed by another waiting
process.
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent 8b5c9ea commit 5c7fb21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/channelutil.cpp
Expand Up @@ -1182,6 +1182,7 @@ QString ChannelUtil::GetDefaultAuthority(uint chanid)
{
s_channelDefaultAuthorityMapLock.unlock();
s_channelDefaultAuthorityMapLock.lockForWrite();
// cppcheck-suppress identicalInnerCondition
if (s_runInit)
{
MSqlQuery query(MSqlQuery::InitCon());
Expand Down

0 comments on commit 5c7fb21

Please sign in to comment.