From: Amos Jeffries Date: Thu, 21 Jul 2011 05:23:16 +0000 (+1200) Subject: Fix GCC 4.6 unused variables in test-suite X-Git-Tag: take08~55^2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b51e6f829a58d68e3d2500589507b355b98e4e22;p=thirdparty%2Fsquid.git Fix GCC 4.6 unused variables in test-suite --- diff --git a/test-suite/refcount.cc b/test-suite/refcount.cc index 79aee79625..93ee96fc00 100644 --- a/test-suite/refcount.cc +++ b/test-suite/refcount.cc @@ -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,