Skip to content

Commit

Permalink
cppcheck: Ignore "redundant assignment" warning in RTjpeg::QuantInit.
Browse files Browse the repository at this point in the history
Cppcheck doesn't recognize that the variable is being accesses by a
different alias in a union.
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent e70e51d commit 636a772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/RTjpegN.cpp
Expand Up @@ -519,7 +519,7 @@ void RTjpeg::QuantInit(void)
for (int i = 0; i < 64; i++)
qtbl.m_int16[i] = static_cast<int16_t>(m_lqt[i]);

// cppcheck-suppress unreadVariable
// cppcheck-suppress [unreadVariable,redundantAssignment]
qtbl.m_int32 = m_cqt.data();
for (int i = 0; i < 64; i++)
qtbl.m_int16[i] = static_cast<int16_t>(m_cqt[i]);
Expand Down

0 comments on commit 636a772

Please sign in to comment.