fix warnings

This commit is contained in:
Joachim Schoeberl 2024-07-16 13:03:49 +02:00
parent 20e0b3efa5
commit 54d59cff1e
4 changed files with 7 additions and 7 deletions

View File

@ -662,7 +662,7 @@ namespace netgen
bool do_split = mp.optimize3d.find('d') != string::npos;
bool do_swap = mp.optimize3d.find('s') != string::npos;
bool do_swap2 = mp.optimize3d.find('t') != string::npos;
for(auto i : Range(mp.optsteps3d))
for([[maybe_unused]] auto i : Range(mp.optsteps3d))
{
auto [total_badness, max_badness, bad_els] = optmesh.UpdateBadness();
if(bad_els==0) break;

View File

@ -61,7 +61,7 @@ namespace netgen
Standard_Integer BuildTriangulation( const TopoDS_Shape & shape )
{
BRepTools::Clean (shape);
double deflection = 0.01;
// double deflection = 0.01;
// https://dev.opencascade.org/doc/overview/html/occt_user_guides__mesh.html
// from Standard_Boolean meshing_imeshtools_parameters()

View File

@ -1262,7 +1262,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
})
.def("_webgui_data", [](const TopoDS_Shape & shape)
{
auto status = BuildTriangulation(shape);
[[maybe_unused]] auto status = BuildTriangulation(shape);
// cout << "status = " << aStatus << endl;
std::vector<double> p[3];

View File

@ -145,16 +145,16 @@ namespace netgen
int filledtimestamp = -1;
int linetimestamp = -1;
int edgetimestamp = -1;
int pointnumbertimestamp = -1;
// int pointnumbertimestamp = -1;
int tettimestamp = -1;
int prismtimestamp = -1;
int pyramidtimestamp = -1;
int hextimestamp = -1;
int badeltimestamp = -1;
int identifiedtimestamp = -1;
int domainsurftimestamp = -1;
// int badeltimestamp = -1;
// int identifiedtimestamp = -1;
// int domainsurftimestamp = -1;
struct {
unsigned texture = -1;