summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testAutoPtr.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-04-28 21:42:22 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-04-28 21:42:22 (GMT)
commita170690fd2490fb84c87d7897f5ceac78da8f512 (patch)
tree596b619f780b24b5266e8c6cf96788c6165b879b /Source/kwsys/testAutoPtr.cxx
parent9e99ac58793d8e99df37bda06097c76a0649702e (diff)
downloadCMake-a170690fd2490fb84c87d7897f5ceac78da8f512.zip
CMake-a170690fd2490fb84c87d7897f5ceac78da8f512.tar.gz
CMake-a170690fd2490fb84c87d7897f5ceac78da8f512.tar.bz2
Fix for bug #10550, work around instantiation out of scope
Diffstat (limited to 'Source/kwsys/testAutoPtr.cxx')
-rw-r--r--Source/kwsys/testAutoPtr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/testAutoPtr.cxx b/Source/kwsys/testAutoPtr.cxx
index 747d869..ed75ff4 100644
--- a/Source/kwsys/testAutoPtr.cxx
+++ b/Source/kwsys/testAutoPtr.cxx
@@ -25,7 +25,7 @@
#define ASSERT(x,y) if (!(x)) { printf("FAIL: " y "\n"); status = 1; }
-static int instances = 0;
+int instances = 0; // don't declare as static
struct A
{