| Index: third_party/sqlite/BUILD.gn
|
| diff --git a/third_party/sqlite/BUILD.gn b/third_party/sqlite/BUILD.gn
|
| index d253173ad2ef4b1fb64ad2591bd0e7da9dcb7a95..866c2449101283f3c98644074a7f009372f102b1 100644
|
| --- a/third_party/sqlite/BUILD.gn
|
| +++ b/third_party/sqlite/BUILD.gn
|
| @@ -12,27 +12,6 @@
|
| if (!use_system_sqlite) {
|
| config("sqlite_config") {
|
| include_dirs = [ "." ]
|
| - }
|
| -
|
| - config("sqlite_warnings") {
|
| - cflags = []
|
| - if (is_clang) {
|
| - # sqlite contains a few functions that are unused, at least on
|
| - # Windows with Chromium's sqlite patches applied
|
| - # (interiorCursorEOF fts3EvalDeferredPhrase
|
| - # fts3EvalSelectDeferred sqlite3Fts3InitHashTable
|
| - # sqlite3Fts3InitTok).
|
| - cflags += [ "-Wno-unused-function" ]
|
| - }
|
| - if (is_linux) {
|
| - cflags += [
|
| - # SQLite doesn"t believe in compiler warnings,
|
| - # preferring testing.
|
| - # http://www.sqlite.org/faq.html#q17
|
| - "-Wno-int-to-pointer-cast",
|
| - "-Wno-pointer-to-int-cast",
|
| - ]
|
| - }
|
| }
|
|
|
| source_set("sqlite") {
|
| @@ -78,6 +57,26 @@
|
|
|
| include_dirs = [ "amalgamation" ]
|
|
|
| + config("sqlite_warnings") {
|
| + cflags = []
|
| + if (is_clang) {
|
| + # sqlite contains a few functions that are unused, at least on
|
| + # Windows with Chromium's sqlite patches applied
|
| + # (interiorCursorEOF fts3EvalDeferredPhrase
|
| + # fts3EvalSelectDeferred sqlite3Fts3InitHashTable
|
| + # sqlite3Fts3InitTok).
|
| + cflags += [ "-Wno-unused-function" ]
|
| + }
|
| + if (is_linux) {
|
| + cflags += [
|
| + # SQLite doesn"t believe in compiler warnings,
|
| + # preferring testing.
|
| + # http://www.sqlite.org/faq.html#q17
|
| + "-Wno-int-to-pointer-cast",
|
| + "-Wno-pointer-to-int-cast",
|
| + ]
|
| + }
|
| + }
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| configs += [ "//build/config/compiler:no_chromium_code" ]
|
| configs += [ ":sqlite_warnings" ]
|
|
|