From a534d50580dca98c91598777bf899de2228ad0a0 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 7 Sep 2024 14:34:26 +0100 Subject: [PATCH] tests/Database_test.cpp: fix a warning around `#endif` Without the change `gcc` detects unexpected tokens as: /build/source/tests/Database_test.cpp:566:9: warning: extra tokens at end of #endif directive [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wendif-labels-Wendif-labels8;;] 566 | #endif && !defined(__APPLE__) | ^~ --- tests/Database_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Database_test.cpp b/tests/Database_test.cpp index 635d827e..3f42bc17 100644 --- a/tests/Database_test.cpp +++ b/tests/Database_test.cpp @@ -563,7 +563,7 @@ TEST(Database, getHeaderInfo) // NOTE on macOS FindSQLite3 find an unrelated sqlite3.h from Mono.framework that doesn't match the actual package version! #if defined(SQLITECPP_INTERNAL_SQLITE) || !defined(__APPLE__) EXPECT_EQ(h.sqliteVersion, SQLITE_VERSION_NUMBER); -#endif && !defined(__APPLE__) +#endif } remove("test.db3"); }