Commit f9474549 authored by David Cole's avatar David Cole
Browse files

ENH: Merge changes from main tree into VTK-5-0 branch. (cvs -q up -j1.3 -j1.4...

ENH: Merge changes from main tree into VTK-5-0 branch. (cvs -q up -j1.3 -j1.4 Common/vtkDebugLeaksManager.cxx)
parent e1a7c726
......@@ -15,6 +15,13 @@
#include "vtkDebugLeaksManager.h"
#include "vtkDebugLeaks.h"
// Global optimization performed by MSVC breaks the initialization
// order across translation units enforced by this manager. Disable
// them for this object file.
#if defined(_MSC_VER)
# pragma optimize("g", off)
#endif
// Must NOT be initialized. Default initialization to zero is
// necessary.
unsigned int vtkDebugLeaksManagerCount;
......@@ -34,3 +41,7 @@ vtkDebugLeaksManager::~vtkDebugLeaksManager()
vtkDebugLeaks::ClassFinalize();
}
}
#if defined(_MSC_VER)
# pragma optimize("g", on)
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment