diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-06-27 13:15:22 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-06-27 13:15:22 +0100 |
commit | 4a433cde9871b77858b059c318488f7a1a6f3e50 (patch) | |
tree | b5cbde71915c72f7392bc2ad50c89db46ec8caf5 /include/cppunit/extensions/HelperMacros.h | |
parent | 943e73cc0401df0fac2636e3676218c8e1219a05 (diff) | |
download | cppunit-4a433cde9871b77858b059c318488f7a1a6f3e50.tar.gz |
calm gcc paranoia about uninitialized state
Diffstat (limited to 'include/cppunit/extensions/HelperMacros.h')
-rw-r--r-- | include/cppunit/extensions/HelperMacros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cppunit/extensions/HelperMacros.h b/include/cppunit/extensions/HelperMacros.h index 5c68b03..43fc08e 100644 --- a/include/cppunit/extensions/HelperMacros.h +++ b/include/cppunit/extensions/HelperMacros.h @@ -168,6 +168,7 @@ \ struct CppUnitExDeleter { /* avoid deprecated auto_ptr warnings */ \ CPPUNIT_NS::TestSuite *suite; \ + CppUnitExDeleter() : suite (0) {} \ ~CppUnitExDeleter() { delete suite; } \ CPPUNIT_NS::TestSuite *release() { \ CPPUNIT_NS::TestSuite *tmp = suite; suite = NULL; return tmp; \ |