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; } }