Commit 2ef4331d authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

fix gcc compiler warning in mesh_vtk_file.cpp

parent d2562ffa
...@@ -88,10 +88,10 @@ namespace INMOST ...@@ -88,10 +88,10 @@ namespace INMOST
{ {
if( fgets(readline,2048,f) == NULL ) //NAME if( fgets(readline,2048,f) == NULL ) //NAME
throw BadFile; throw BadFile;
fscanf(f,"%*s"); //DATA filled = fscanf(f,"%*s"); //DATA
filled = fscanf(f,"%d",&scnt); //vector size filled = fscanf(f,"%d",&scnt); //vector size
if( filled != 1 ) throw BadFile; if( filled != 1 ) throw BadFile;
for(int q = 0; q < scnt; ++q) fscanf(f,"%*s\n"); for(int q = 0; q < scnt; ++q) filled = fscanf(f,"%*s\n");
} }
} }
else if( !strncmp(readline,"COMPONENT_NAMES",15) ) else if( !strncmp(readline,"COMPONENT_NAMES",15) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment