Skip to content

Commit

Permalink
tests/Database_test.cpp: fix a warning around #endif
Browse files Browse the repository at this point in the history
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__)
          |         ^~
  • Loading branch information
trofi committed Sep 7, 2024
1 parent 52b24b9 commit a534d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Database_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit a534d50

Please sign in to comment.