Examples of errors detected by the V588 diagnostic

02.04.2014

V588. The expression of the 'A =+ B' kind is utilized. Consider reviewing it, as it is possible that 'A += B' was meant.


Libxml2

V588 The expression of the 'A =+ B' kind is utilized. Consider reviewing it, as it is possible that 'A += B' was meant. libxml xpath.c 12676


static int
xmlXPathCompOpEvalFirst(....)
{
  ...
  total += xmlXPathCompOpEvalFirst(....);
  ...
  total =+ xmlXPathCompOpEvalFilterFirst(ctxt, op, first);
  ...
}

Trans-Proteomic Pipeline

V588 The expression of the 'A =+ B' kind is utilized. Consider reviewing it, as it is possible that 'A += B' was meant. plot_msms plot-msms1.cxx 478


int main(int argc, char **argv)
{
  ...
  ii=0;
  for (i=0; pEnvironment.szPeptide[i]!=0; i++)
    ii =+ pEnvironment.szPeptide[i];
  ...
}

This is what should have been written here: ii += pEnvironment.szPeptide[i];