Feature/reduce warnings clang13
Some more warnings found by Clang 13
Merge request reports
Activity
assigned to @oliver.sander
1144 1144 INT side,found,i,j,k,nerrors,sdid,sc; 1145 1145 NODE *theNode,*n1,*n2,*nbn1,*nbn2,*nbn3,*nbn4; 1146 1146 EDGE *theEdge,*father_edge; 1147 ELEMENT *theFather; 1147 ELEMENT *theFather = EFATHER(theElement); changed this line in version 2 of the diff
Thanks for your comment, in principle you are right. I altered the position of the initialization of
theFather
, it is now right after the NULL check and is fine for sure. I have to check whether the code is ever executed.Edited by Christoph GrüningerI see. All we have to do is adding a
main
function, creating aGRID
and callingCheckGrid
. Then all checks are run. Unfortunatley, I don't know how to crate a UG grid outside of Dune. If you want, I can create an issue for this.With my update, this MR should be fine either way. Do you mind merging?
I don't know how to crate a UG grid outside of Dune.
Why do it outside of Dune? My idea would be to call the method from the tests in
dune-grid
.With my update, this MR should be fine either way. Do you mind merging?
Yes, I do mind. Please revert
gmcheck.cc
for the time being, and I'll merge the rest.
mentioned in commit 46d3657c