mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix warning
This commit is contained in:
parent
c096536e32
commit
bb3c3ff565
@ -6837,7 +6837,7 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
auto nr = ident->GetNr(id_name);
|
auto nr = ident->GetNr(id_name);
|
||||||
ident->SetType(nr, Identifications::PERIODIC);
|
ident->SetType(nr, Identifications::PERIODIC);
|
||||||
double lami[4];
|
// double lami[4];
|
||||||
set<int> identified_points;
|
set<int> identified_points;
|
||||||
if(pointTolerance < 0.)
|
if(pointTolerance < 0.)
|
||||||
{
|
{
|
||||||
|
@ -2078,7 +2078,6 @@ namespace netgen
|
|||||||
return TCL_ERROR;
|
return TCL_ERROR;
|
||||||
const char * filename = Tcl_GetString(argv[2]);
|
const char * filename = Tcl_GetString(argv[2]);
|
||||||
|
|
||||||
int len = strlen(filename);
|
|
||||||
int w = Togl_PixelScale(togl)*Togl_Width (togl);
|
int w = Togl_PixelScale(togl)*Togl_Width (togl);
|
||||||
int h = Togl_PixelScale(togl)*Togl_Height (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]);
|
glReadPixels (0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, &buffer[0]);
|
||||||
|
|
||||||
#ifdef JPEGLIB
|
#ifdef JPEGLIB
|
||||||
|
int len = strlen(filename);
|
||||||
if (strcmp ("jpg", filename+len-3) == 0)
|
if (strcmp ("jpg", filename+len-3) == 0)
|
||||||
{
|
{
|
||||||
cout << "Snapshot to file '" << filename << "'" << endl;
|
cout << "Snapshot to file '" << filename << "'" << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user