Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: base/allocator/allocator.gyp

Issue 10818025: tcmalloc: move includes for mallinfo from tcmalloc.cc to tcmalloc.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator.gyp
diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp
index e2c8ac0faeb383fd96b138b1f99b23c830ab21bb..d4043b50c03bda70bc1ba70c2ee779c492377a6a 100644
--- a/base/allocator/allocator.gyp
+++ b/base/allocator/allocator.gyp
@@ -394,6 +394,13 @@
'-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakChecker14UnIgnoreObjectEPKv',
]},
}],
+ [ 'clang==1', {
+ 'cflags': [
+ # tcmalloc.h declares "struct mallinfo tc_mallinfo(void)"
+ # with c-style linkage.
Nico 2012/07/24 13:38:16 Do you know why the warning fires on this?
hans 2012/07/24 13:49:13 Yes, tc_mallinfo is declared inside an 'extern "C"
+ '-Wno-return-type-c-linkage',
+ ],
+ }],
[ 'linux_use_debugallocation==1', {
'sources!': [
# debugallocation.cc #includes tcmalloc.cc,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698