diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-11 17:44:28 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-11 17:44:28 +0000 |
commit | 454e1ba3e3c68db84ed64b669bacd1f451766291 (patch) | |
tree | 20680afe728cb3fe040b9cbac74e2b538d941228 /lib | |
parent | 19663917c6f8efeac881a744a4448681594bcb92 (diff) |
Fix spurious memory leak warnings on Solaris when using Sun Studio
compiler.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/DebugMemLeakFinder.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |