Skip to content

Commit 60b1993

Browse files
committed
Suppress a warning with std::terminate() used for lest_THROW() (courtesy gsl-lite, commit 11-Feb-2026)
gsl-lite: - Revision: 8ea78d33280e9b3610adb9ef6d8276e8a366a1bd - Author: Moritz Beutel - Date: 2/11/2026 12:35:59 PM
1 parent 8bf1e8b commit 60b1993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/lest/lest_cpp03.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
# define lest_TRY if (1)
252252
# define lest_CATCH(x) else if (0)
253253
# define lest_CATCH_ALL else if (0)
254-
# define lest_THROW(x) std::terminate()
254+
# define lest_THROW(x) ( (void) sizeof( x ), std::terminate() )
255255
# define lest_RETHROW
256256
#endif // lest_HAVE( EXCEPTIONS )
257257

0 commit comments

Comments
 (0)