PVS-StudioWarnings

PVS-Studio warning V576 for OpenCOLLADA

Nov 19th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. struct vector
  2. {
  3.   double x;
  4.   double y;
  5.   double z;
  6.   void write(FILE* file) const
  7.   {
  8.     fprintf(file,"%f %f %f %f", x, y, z);
  9.   }
  10. };
  11.  
  12. This suspicious code was found in OpenCOLLADA project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V576 Incorrect format. A different number of actual arguments is expected while calling 'fprintf' function. Expected: 6. Present: 5. mayadmtypes.h 657
  15.  
  16. 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