From bb3c3ff565b374f4d29f0605c29bbc5909218185 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 3 Sep 2024 11:11:45 +0200 Subject: [PATCH] fix warning --- libsrc/meshing/meshclass.cpp | 2 +- ng/ngpkg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 43c4b581..796affa1 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -6837,7 +6837,7 @@ namespace netgen { auto nr = ident->GetNr(id_name); ident->SetType(nr, Identifications::PERIODIC); - double lami[4]; + // double lami[4]; set identified_points; if(pointTolerance < 0.) { diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index 0627d650..e7120710 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -2078,7 +2078,6 @@ namespace netgen return TCL_ERROR; const char * filename = Tcl_GetString(argv[2]); - int len = strlen(filename); int w = Togl_PixelScale(togl)*Togl_Width (togl); int h = Togl_PixelScale(togl)*Togl_Height (togl); @@ -2088,6 +2087,7 @@ namespace netgen glReadPixels (0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, &buffer[0]); #ifdef JPEGLIB + int len = strlen(filename); if (strcmp ("jpg", filename+len-3) == 0) { cout << "Snapshot to file '" << filename << "'" << endl;