Skip to content

Commit

Permalink
gmsh: silence more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Oct 5, 2022
1 parent e72c473 commit 7b523eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mds/mdsGmsh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void readEntities(Reader* r,const char* fnameDmg)
nlde=getLong(r); // 2 in straight edged models but...
for(long j =0; j < nlde; ++j) {
ilde=getLong(r);
fprintf(f, " %d", abs(ilde)); // modVerts started from 1
fprintf(f, " %ld", std::abs(ilde)); // modVerts started from 1
}
fprintf(f, "\n");
getLine(r);
Expand All @@ -196,7 +196,7 @@ void readEntities(Reader* r,const char* fnameDmg)
isign=1;
else
isign=0;
fprintf(f, " %d %ld \n", abs(ilde),isign);
fprintf(f, " %ld %ld \n", std::abs(ilde),isign);
}
getLine(r);
}
Expand All @@ -214,7 +214,7 @@ void readEntities(Reader* r,const char* fnameDmg)
isign=1;
else
isign=0;
fprintf(f, "%d %ld \n", abs(ilde),isign);
fprintf(f, "%ld %ld \n", std::abs(ilde),isign);
}
getLine(r);
}
Expand Down
2 changes: 1 addition & 1 deletion test/gmsh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main(int argc, char** argv)

const int gmshVersion = apf::gmshMajorVersion(gmsh.c_str());
fprintf(stderr, "version %d\n", gmshVersion);
apf::Mesh2* m;
apf::Mesh2* m = NULL;
if (gmshVersion == 2) {
if (model.compare("none") == 0) {
m = apf::loadMdsFromGmsh(gmi_load(".null"), gmsh.c_str());
Expand Down

0 comments on commit 7b523eb

Please sign in to comment.