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

Side by Side Diff: build/common.gypi

Issue 415773009: Re-enable various MSVC warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/allocator/allocator_unittest.cc ('k') | build/config/compiler/BUILD.gn » ('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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 5236 matching lines...) Expand 10 before | Expand all | Expand 10 after
5247 }], 5247 }],
5248 ], 5248 ],
5249 'msvs_system_include_dirs': [ 5249 'msvs_system_include_dirs': [
5250 '<(windows_sdk_path)/Include/shared', 5250 '<(windows_sdk_path)/Include/shared',
5251 '<(windows_sdk_path)/Include/um', 5251 '<(windows_sdk_path)/Include/um',
5252 '<(windows_sdk_path)/Include/winrt', 5252 '<(windows_sdk_path)/Include/winrt',
5253 '$(VSInstallDir)/VC/atlmfc/include', 5253 '$(VSInstallDir)/VC/atlmfc/include',
5254 ], 5254 ],
5255 'msvs_cygwin_shell': 0, 5255 'msvs_cygwin_shell': 0,
5256 'msvs_disabled_warnings': [ 5256 'msvs_disabled_warnings': [
5257 4351, 4355, 4396, 4503, 4819, 5257 # C4127: conditional expression is constant
5258 # This warning can in theory catch dead code and other problems, but
5259 # triggers in far too many desirable cases where the conditional
5260 # expression is either set by macros or corresponds some legitimate
5261 # compile-time constant expression (due to constant template args,
5262 # conditionals comparing the sizes of different types, etc.). Some of
5263 # these can be worked around, but it's not worth it.
5264 4127,
5265
5266 # C4351: new behavior: elements of array 'array' will be default
5267 # initialized
5268 # This is a silly "warning" that basically just alerts you that the
5269 # compiler is going to actually follow the language spec like it's
5270 # supposed to, instead of not following it like old buggy versions
5271 # did. There's absolutely no reason to turn this on.
5272 4351,
5273
5274 # C4355: 'this': used in base member initializer list
5275 # It's commonly useful to pass |this| to objects in a class'
5276 # initializer list. While this warning can catch real bugs, most of
5277 # the time the constructors in question don't attempt to call methods
5278 # on the passed-in pointer (until later), and annotating every legit
5279 # usage of this is simply more hassle than the warning is worth.
5280 4355,
5281
5282 # C4503: 'identifier': decorated name length exceeded, name was
5283 # truncated
5284 # This only means that some long error messages might have truncated
5285 # identifiers in the presence of lots of templates. It has no effect
5286 # on program correctness and there's no real reason to waste time
5287 # trying to prevent it.
5288 4503,
5289
5290 # C4611: interaction between 'function' and C++ object destruction is
5291 # non-portable
5292 # This warning is unavoidable when using e.g. setjmp/longjmp. MSDN
5293 # suggests using exceptions instead of setjmp/longjmp for C++, but
5294 # Chromium code compiles without exception support. We therefore have
5295 # to use setjmp/longjmp for e.g. JPEG decode error handling, which
5296 # means we have to turn off this warning (and be careful about how
5297 # object destruction happens in such cases).
5298 4611,
5299
5258 # TODO(maruel): These warnings are level 4. They will be slowly 5300 # TODO(maruel): These warnings are level 4. They will be slowly
5259 # removed as code is fixed. 5301 # removed as code is fixed.
5260 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245, 5302 4100, # Unreferenced formal parameter
5261 4310, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701, 4706, 5303 4121, # Alignment of a member was sensitive to packing
5304 4189, # Local variable is initialized but not referenced
5305 4244, # Conversion from 'type1' to 'type2', possible loss of data
5306 4481, # Nonstandard extension used: override specifier 'keyword'
5307 4505, # Unreferenced local function has been removed
5308 4510, # Default constructor could not be generated
5309 4512, # Assignment operator could not be generated
5310 4610, # Object can never be instantiated
5262 ], 5311 ],
5263 'msvs_settings': { 5312 'msvs_settings': {
5264 'VCCLCompilerTool': { 5313 'VCCLCompilerTool': {
5265 'AdditionalOptions': ['/MP'], 5314 'AdditionalOptions': ['/MP'],
5266 'MinimalRebuild': 'false', 5315 'MinimalRebuild': 'false',
5267 'BufferSecurityCheck': 'true', 5316 'BufferSecurityCheck': 'true',
5268 'EnableFunctionLevelLinking': 'true', 5317 'EnableFunctionLevelLinking': 'true',
5269 'RuntimeTypeInfo': 'false', 5318 'RuntimeTypeInfo': 'false',
5270 'WarningLevel': '4', 5319 'WarningLevel': '4',
5271 'WarnAsError': 'true', 5320 'WarnAsError': 'true',
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
5630 # settings in target dicts. SYMROOT is a special case, because many other 5679 # settings in target dicts. SYMROOT is a special case, because many other
5631 # Xcode variables depend on it, including variables such as 5680 # Xcode variables depend on it, including variables such as
5632 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5681 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5633 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5682 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5634 # files to appear (when present) in the UI as actual files and not red 5683 # files to appear (when present) in the UI as actual files and not red
5635 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5684 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5636 # and therefore SYMROOT, needs to be set at the project level. 5685 # and therefore SYMROOT, needs to be set at the project level.
5637 'SYMROOT': '<(DEPTH)/xcodebuild', 5686 'SYMROOT': '<(DEPTH)/xcodebuild',
5638 }, 5687 },
5639 } 5688 }
OLDNEW
« no previous file with comments | « base/allocator/allocator_unittest.cc ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698