Skip to content

Commit 58c46e3

Browse files
authored
tests/Database_test.cpp: fix a warning around #endif (#489)
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__) | ^~
2 parents 52b24b9 + a534d50 commit 58c46e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Database_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ TEST(Database, getHeaderInfo)
563563
// NOTE on macOS FindSQLite3 find an unrelated sqlite3.h from Mono.framework that doesn't match the actual package version!
564564
#if defined(SQLITECPP_INTERNAL_SQLITE) || !defined(__APPLE__)
565565
EXPECT_EQ(h.sqliteVersion, SQLITE_VERSION_NUMBER);
566-
#endif && !defined(__APPLE__)
566+
#endif
567567
}
568568
remove("test.db3");
569569
}

0 commit comments

Comments
 (0)