Skip to content

Commit 10fa9bd

Browse files
var-consttru
authored andcommitted
Remove a not-really-necessary change
1 parent 77aca80 commit 10fa9bd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

libcxx/test/libcxx/thread/thread.latch/assert.ctor.pass.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424

2525
#include "check_assertion.h"
2626

27-
int main(int, char**) {
27+
int main(int, char **) {
2828
{
29-
TEST_LIBCPP_ASSERT_FAILURE(
30-
[] { [[maybe_unused]] std::latch l(-1); }(),
31-
"latch::latch(ptrdiff_t): latch cannot be "
32-
"initialized with a negative value");
29+
TEST_LIBCPP_ASSERT_FAILURE([]{ std::latch l(-1); }(),
30+
"latch::latch(ptrdiff_t): latch cannot be "
31+
"initialized with a negative value");
3332
}
3433

3534
// We can't check the precondition for max() because there's no value

libcxx/test/libcxx/thread/thread.semaphore/assert.ctor.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
int main(int, char**) {
2727
{
2828
TEST_LIBCPP_ASSERT_FAILURE(
29-
[] { [[maybe_unused]] std::counting_semaphore<> s(-1); }(),
29+
[] { std::counting_semaphore<> s(-1); }(),
3030
"counting_semaphore::counting_semaphore(ptrdiff_t): counting_semaphore cannot be "
3131
"initialized with a negative value");
3232
}

0 commit comments

Comments
 (0)