Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-07-05 11:30:11 +0200
committerMartin Hořeňovský2026-07-05 12:08:06 +0200
commit15d52830ee1c010c8e7c21faeeb1c4ad8e772435 (patch)
treee49f3ce3913678ab1f48c62a1b90c4d75cfa3b3f /src/catch2
parent9ec44dd62b1b593e01feaf95eb485d26fcdd50ce (diff)
downloadcatch3-15d52830ee1c010c8e7c21faeeb1c4ad8e772435.tar.gz
Fix -Wunused-parameter warning with exceptions disabled
Closes #3114
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/catch_translate_exception.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/catch2/catch_translate_exception.hpp b/src/catch2/catch_translate_exception.hpp
index a1f3faa5..8df15d21 100644
--- a/src/catch2/catch_translate_exception.hpp
+++ b/src/catch2/catch_translate_exception.hpp
@@ -41,6 +41,8 @@ namespace Catch {
return m_translateFunction( ex );
}
#else
+ (void)it;
+ (void)itEnd;
return "You should never get here!";
#endif
}