Skip to content

Commit

Permalink
[Ref] New cppcheck version, new cppcheck braindamage. Same procedure …
Browse files Browse the repository at this point in the history
…as with every new version. Silence false-positive.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21558 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Aug 31, 2024
1 parent f9bc67e commit 14bafd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soundlib/Load_dsym.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ static std::vector<std::byte> DecompressDSymLZW(FileReader &file, uint32 size)

// Align length to 4 bytes
file.Seek(startPos + ((bitFile.GetPosition() - startPos + 3u) & ~FileReader::pos_type(3)));
// cppcheck false-positive
// cppcheck-suppress returnDanglingLifetime
return output;
}

Expand Down

0 comments on commit 14bafd6

Please sign in to comment.