From 8fbf604e9a23a8a0c0f13c3d7391338525f56566 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Mon, 18 Jul 2011 20:36:11 +0000 Subject: tcmalloc: make warning-disable flags match upstream Upstream turns off some warnings. We should too. BUG=89109 Review URL: http://codereview.chromium.org/7396027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92876 0039d316-1c4b-4281-b951-d872f2087c98 --- base/allocator/allocator.gyp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'base/allocator') diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp index b6abed8..e6c134f 100644 --- a/base/allocator/allocator.gyp +++ b/base/allocator/allocator.gyp @@ -333,9 +333,11 @@ '<(jemalloc_dir)/rb.h', ], - # tcmalloc ignores the return value of e.g. write() in many cases. - # http://code.google.com/p/chromium/issues/detail?id=89109 + # We enable all warnings by default, but upstream disables a few. + # Keep "-Wno-*" flags in sync with upstream by comparing against: + # http://code.google.com/p/google-perftools/source/browse/trunk/Makefile.am 'cflags': [ + '-Wno-sign-compare', '-Wno-unused-result', ], 'cflags!': [ -- cgit v1.1