COMP: ignore return value

This commit is contained in:
mattijs
2010-08-19 15:42:29 +01:00
parent 28410e24ed
commit aa7fe837f5
2 changed files with 8 additions and 4 deletions

View File

@ -321,7 +321,7 @@ endOfSection {space}")"{space}
pointGroupEndIndex.append(strtol(endPtr, &endPtr, 16) - 1);
// point group type skipped
strtol(endPtr, &endPtr, 16);
(void)strtol(endPtr, &endPtr, 16);
pointi = pointGroupStartIndex.last();
@ -435,7 +435,7 @@ endOfSection {space}")"{space}
faceGroupEndIndex.append(strtol(endPtr, &endPtr, 16) - 1);
// face group type
strtol(endPtr, &endPtr, 16);
(void)strtol(endPtr, &endPtr, 16);
faceGroupElementType = strtol(endPtr, &endPtr, 16);
@ -583,7 +583,7 @@ endOfSection {space}")"{space}
cellGroupType.append(strtol(endPtr, &endPtr, 16));
// Note. Potentially skip cell set if type is zero.
strtol(endPtr, &endPtr, 16);
(void)strtol(endPtr, &endPtr, 16);
Info<< "CellGroup: "
<< cellGroupZoneID.last()

View File

@ -1171,7 +1171,11 @@ int main(int argc, char *argv[])
+ "_"
+ procFile.name()
);
system(cmd.c_str());
if (system(cmd.c_str()) == -1)
{
WarningIn(args.executable())
<< "Could not execute command " << cmd << endl;
}
}
}
}