Advertisement
PVS-StudioWarnings

PVS-Studio warning V621 for Scilab

Nov 21st, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. static void reinitdoit(double *told)
  2. {
  3.   int keve = 0, kiwa = 0;
  4.   ....
  5.   kiwa = 0;
  6.   ....
  7.   for (i = 0; i < kiwa; i++)
  8.   ....
  9. }
  10.  
  11. This suspicious code was found in Scilab project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V621 Consider inspecting the 'for' operator. It's possible that the loop will be executed incorrectly or won't be executed at all. scicos.c 4432
  14.  
  15. PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement