]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix GCC 4.6 unused variables in test-suite
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 21 Jul 2011 05:23:16 +0000 (17:23 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 21 Jul 2011 05:23:16 +0000 (17:23 +1200)
test-suite/refcount.cc

index 79aee796256c27233633bed25d02a4c04c3f7859..93ee96fc00e31755158ef454e8d229ab6de808dc 100644 (file)
@@ -139,6 +139,8 @@ main (int argc, char **argv)
     {
         ToRefCount anObject (new _ToRefCount);
         _ToRefCount *aPointer = anObject.getRaw();
+        if (aPointer == NULL)
+            exit(3);
         aPointer = NULL;
     }
     /* Create a doubley inheriting refcount instance,