From f8b559772f538cb3dee5cca62a62d1d41d3dc6a2 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 30 Jun 2012 19:18:27 +0000 Subject: [PATCH] Fixed unused variable warning in CppUnitLite --- CppUnitLite/Test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppUnitLite/Test.h b/CppUnitLite/Test.h index 22566131e..89d96f463 100644 --- a/CppUnitLite/Test.h +++ b/CppUnitLite/Test.h @@ -110,7 +110,7 @@ protected: { try { condition; \ result_.addFailure (Failure (name_, __FILE__,__LINE__, SimpleString("Didn't throw: ") + StringFrom(#condition))); \ return; } \ - catch (exception_name& e) {} \ + catch (exception_name&) {} \ catch (...) { \ result_.addFailure (Failure (name_, __FILE__,__LINE__, SimpleString("Wrong exception: ") + StringFrom(#condition) + StringFrom(", expected: ") + StringFrom(#exception_name))); \ return; } }