From d8ca73da6a80ea3a96940ab82be683fc31eac1dc Mon Sep 17 00:00:00 2001 From: cjatin Date: Thu, 3 Jun 2021 11:56:54 +0530 Subject: [PATCH] SWDEV-277697 - Fix ununsed variable error with -Werror,-Wunused-parameter Change-Id: Iadd0050e6cf4e4858e1508c1f24f73732a1af443 --- tests/catch/include/hip_test_checkers.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/catch/include/hip_test_checkers.hh b/tests/catch/include/hip_test_checkers.hh index 68f0a1e405..d0c180c25c 100644 --- a/tests/catch/include/hip_test_checkers.hh +++ b/tests/catch/include/hip_test_checkers.hh @@ -51,7 +51,7 @@ void checkTest(T* expected_H, T* result_H, size_t N, bool expectMatch = true) { checkVectors( expected_H, expected_H, result_H, N, [](T a, T b) { - assert(a == b); + guarantee(a == b, "Both values should be equal"); return a; }, expectMatch);