mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026781: Coding rules - eliminate GCC warning -Wunused-result
Check return code of fgets() and system() within FSD_BinaryFile::ReadChar(), IFSelect_SessionFile::ReadFile(), IFSelect_SessionPilot::ReadScript(), OSD_File::Print(), OSD_Process::Spawn(), RWStl::ReadAscii(), iges_lire().
This commit is contained in:
@@ -168,9 +168,8 @@ void FSD_BinaryFile::ReadChar(TCollection_AsciiString& buffer, const Standard_Si
|
||||
buffer.Clear();
|
||||
|
||||
while (!IsEnd() && (ccount < rsize)) {
|
||||
fread(&c, sizeof(char),1, myStream);
|
||||
ccount += fread(&c, sizeof(char),1, myStream);
|
||||
buffer += c;
|
||||
ccount++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user