From 454e1ba3e3c68db84ed64b669bacd1f451766291 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 11 Oct 2008 17:44:28 +0000 Subject: Fix spurious memory leak warnings on Solaris when using Sun Studio compiler. --- lib/common/DebugMemLeakFinder.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/common/DebugMemLeakFinder.cpp b/lib/common/DebugMemLeakFinder.cpp index a01e8937..9fcabd81 100644 --- a/lib/common/DebugMemLeakFinder.cpp +++ b/lib/common/DebugMemLeakFinder.cpp @@ -75,6 +75,13 @@ namespace void memleakfinder_init() { ASSERT(!memleakfinder_initialised); + + { + // allocates a permanent buffer on Solaris. + // not a leak? + std::ostringstream oss; + } + memleakfinder_initialised = true; } -- cgit v1.2.3