From 4978976710e30b759ccd7bf47e2eb2dce7a0a05b Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 8 Feb 2011 23:46:34 +0000 Subject: sqlite: disable some warnings The SQLite project doesn't fix compiler warnings(!), instead preferring automated testing. Review URL: http://codereview.chromium.org/6456008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74201 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/sqlite/sqlite.gyp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'third_party/sqlite') diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp index d4d581f..dae9b13 100644 --- a/third_party/sqlite/sqlite.gyp +++ b/third_party/sqlite/sqlite.gyp @@ -215,7 +215,7 @@ ], }, 'msvs_disabled_warnings': [ - 4018, 4244, + 4018, 4244, ], 'conditions': [ ['OS=="win"', { @@ -223,6 +223,15 @@ }, { # else: OS!="win" 'sources/': [['exclude', '_(w32|win)\\.cc?$']], }], + ['OS=="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', + ], + }], ], }], ], -- cgit v1.1