Skip to content

Commit 9bfaf9c

Browse files
authored
Mark test registrars as maybe_unused. (#979)
1 parent 267524a commit 9bfaf9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_helpers.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct registrar
6161

6262
// Register a test function, so the runner will run it.
6363
#define PQXX_REGISTER_TEST(func) \
64-
pqxx::test::registrar tst_##func \
64+
[[maybe_unused]] pqxx::test::registrar tst_##func \
6565
{ \
6666
#func, func \
6767
}

0 commit comments

Comments
 (0)