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

Side by Side Diff: base/allocator/allocator.gyp

Issue 1557733002: Prepare for -Wall for third-party code, -Wextra for chromium_code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « base/allocator/BUILD.gn ('k') | base/android/context_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 # This code gets run a lot and debugged rarely, so it should be fast 8 # This code gets run a lot and debugged rarely, so it should be fast
9 # by default. See http://crbug.com/388949. 9 # by default. See http://crbug.com/388949.
10 'debug_optimize': '2', 10 'debug_optimize': '2',
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 '<(tcmalloc_dir)/src/stacktrace_powerpc-inl.h', 277 '<(tcmalloc_dir)/src/stacktrace_powerpc-inl.h',
278 '<(tcmalloc_dir)/src/stacktrace_win32-inl.h', 278 '<(tcmalloc_dir)/src/stacktrace_win32-inl.h',
279 '<(tcmalloc_dir)/src/stacktrace_with_context.cc', 279 '<(tcmalloc_dir)/src/stacktrace_with_context.cc',
280 '<(tcmalloc_dir)/src/stacktrace_x86-inl.h', 280 '<(tcmalloc_dir)/src/stacktrace_x86-inl.h',
281 '<(tcmalloc_dir)/src/tcmalloc_guard.h', 281 '<(tcmalloc_dir)/src/tcmalloc_guard.h',
282 282
283 # Included by debugallocation_shim.cc. 283 # Included by debugallocation_shim.cc.
284 '<(tcmalloc_dir)/src/debugallocation.cc', 284 '<(tcmalloc_dir)/src/debugallocation.cc',
285 '<(tcmalloc_dir)/src/tcmalloc.cc', 285 '<(tcmalloc_dir)/src/tcmalloc.cc',
286 ], 286 ],
287 'variables': {
288 'clang_warning_flags': [
289 # tcmalloc initializes some fields in the wrong order.
290 '-Wno-reorder',
291 # tcmalloc contains some unused local template specializations.
292 '-Wno-unused-function',
293 # tcmalloc uses COMPILE_ASSERT without static_assert but with
294 # typedefs.
295 '-Wno-unused-local-typedefs',
296 # for magic2_ in debugallocation.cc (only built in Debug builds)
297 # typedefs.
298 '-Wno-unused-private-field',
299 ],
300 },
287 'conditions': [ 301 'conditions': [
288 ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', { 302 ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', {
289 'sources!': [ 303 'sources!': [
290 '<(tcmalloc_dir)/src/system-alloc.h', 304 '<(tcmalloc_dir)/src/system-alloc.h',
291 ], 305 ],
292 # We enable all warnings by default, but upstream disables a few. 306 # We enable all warnings by default, but upstream disables a few.
293 # Keep "-Wno-*" flags in sync with upstream by comparing against: 307 # Keep "-Wno-*" flags in sync with upstream by comparing against:
294 # http://code.google.com/p/google-perftools/source/browse/trunk/Ma kefile.am 308 # http://code.google.com/p/google-perftools/source/browse/trunk/Ma kefile.am
295 'cflags': [ 309 'cflags': [
296 '-Wno-sign-compare', 310 '-Wno-sign-compare',
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 '<(SHARED_INTERMEDIATE_DIR)/allocator', 393 '<(SHARED_INTERMEDIATE_DIR)/allocator',
380 '<(target_arch)', 394 '<(target_arch)',
381 ], 395 ],
382 }, 396 },
383 ], 397 ],
384 }, 398 },
385 ], 399 ],
386 }], 400 }],
387 ], 401 ],
388 } 402 }
OLDNEW
« no previous file with comments | « base/allocator/BUILD.gn ('k') | base/android/context_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698