From: Amos Jeffries Date: Fri, 22 Jul 2011 14:45:06 +0000 (-0600) Subject: Fix GCC 4.6 warning unused variables in test-suite X-Git-Tag: SQUID_3_1_15~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c178f1212b99efd8f413eaecd782facd3638a47;p=thirdparty%2Fsquid.git Fix GCC 4.6 warning 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,