Fix warnings

This commit is contained in:
Erica Fischer
2024-07-30 15:38:07 -07:00
parent 03ef561050
commit 43e5b6147e
6 changed files with 14 additions and 8 deletions
+4 -1
View File
@@ -2232,7 +2232,10 @@ std::pair<int, metadata> read_input(std::vector<source> &sources, char *fname, i
estimated_complexity = geompos;
fflush(geomfile);
pwrite(fileno(geomfile), &estimated_complexity, sizeof(estimated_complexity), 0);
if (pwrite(fileno(geomfile), &estimated_complexity, sizeof(estimated_complexity), 0) != 0) {
perror("pwrite estimated complexity");
exit(EXIT_WRITE);
}
if (fclose(geomfile) != 0) {
perror("fclose geom");