Skip to content

Commit 175043f

Browse files
author
richelbilderbeek
committed
Less warnings in release mode
1 parent f1b7063 commit 175043f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

asserts.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
void test_asserts()
66
{
7+
#ifndef NDEBUG
78
// assert_eq: OK
89
{
910
const std::string s{"something irrelevant"};
@@ -26,5 +27,6 @@ void test_asserts()
2627
}
2728
assert(has_thrown);
2829
}
30+
#endif // NDEBUG
2931
}
3032

0 commit comments

Comments
 (0)