Examples of errors detected by the V760 diagnostic.

V760. Two identical text blocks detected. The second block starts with NN string.


CMaNGOS

V760 Two identical blocks of text were found. The second block begins from line 213. BattleGround.cpp 210


BattleGround::BattleGround()
: m_BuffChange(false),
  m_StartDelayTime(0),
  m_startMaxDist(0)
{
    ....
    m_TeamStartLocO[TEAM_INDEX_ALLIANCE]   = 0;
    m_TeamStartLocO[TEAM_INDEX_HORDE]      = 0;

    m_BgRaids[TEAM_INDEX_ALLIANCE]         = nullptr;
    m_BgRaids[TEAM_INDEX_HORDE]            = nullptr;

    m_PlayersCount[TEAM_INDEX_ALLIANCE]    = 0;       // <=
    m_PlayersCount[TEAM_INDEX_HORDE]       = 0;       // <=

    m_PlayersCount[TEAM_INDEX_ALLIANCE]    = 0;       // <=
    m_PlayersCount[TEAM_INDEX_HORDE]       = 0;       // <=

    m_TeamScores[TEAM_INDEX_ALLIANCE]      = 0;
    m_TeamScores[TEAM_INDEX_HORDE]         = 0;
    ....
}

TensorFlow

V760 Two identical blocks of text were found. The second block begins from line 58. encode_jpeg_op.cc 56


class EncodeJpegOp : public OpKernel {
  ....
  explicit EncodeJpegOp(OpKernelConstruction* context) :
    OpKernel(context) {
    ....
    OP_REQUIRES_OK(context,
      context->GetAttr("quality", &flags_.quality));
    OP_REQUIRES(context,
      0 <= flags_.quality && flags_.quality <= 100,
      errors::InvalidArgument("quality must be in [0,100], got ",
      flags_.quality));
    OP_REQUIRES_OK(context,
      context->GetAttr("progressive",
                       &flags_.progressive));
    OP_REQUIRES_OK(context,
      context->GetAttr("optimize_size",
                       &flags_.optimize_jpeg_size));
    OP_REQUIRES_OK(context,
      context->GetAttr("chroma_downsampling",         // <=
                       &flags_.chroma_downsampling));
    OP_REQUIRES_OK(context,
      context->GetAttr("chroma_downsampling",         // <=
                       &flags_.chroma_downsampling));
    ....
  }
  ....
  jpeg::CompressFlags flags_;
}


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++ and C#

goto PVS-Studio;