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

Unified Diff: build/common.gypi

Issue 2854013: [Mac] force -Wextra on for all chromium code. Not bothering with a local swi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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: build/common.gypi
===================================================================
--- build/common.gypi (revision 50344)
+++ build/common.gypi (working copy)
@@ -166,10 +166,6 @@
'mac_sdk%': '10.5',
'mac_deployment_target%': '10.5',
- # Turn on -Wextra on chromium code during Mac compile.
- # TODO(mark,tvl): drop this and turn it always on when it works.
- 'chromium_mac_wextra%': 0,
-
# Set to 1 to enable code coverage. In addition to build changes
# (e.g. extra CFLAGS), also creates a new target in the src/chrome
# project file called "coverage".
@@ -1146,21 +1142,20 @@
'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)',
'PREBINDING': 'NO', # No -Wl,-prebind
'USE_HEADERMAP': 'NO',
- 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
+ 'WARNING_CFLAGS': [
+ '-Wall',
+ '-Wendif-labels',
Evan Martin 2010/06/21 20:34:57 FWIW, according to http://gcc.gnu.org/onlinedocs/c
+ '-Wextra',
+ # Don't warn about unused function params. Used everywhere.
Mark Mentovai 2010/06/21 13:48:23 params -> parameters. “Used everywhere” means tha
+ '-Wno-unused-parameter',
+ # Don't warn about the "struct foo f = {0};" initialization
+ # pattern.
+ '-Wno-missing-field-initializers',
+ ],
'conditions': [
['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
{'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
],
- ['chromium_mac_wextra', {
- 'WARNING_CFLAGS': [
- '-Wextra',
- # Don't warn about unused function params. Used everywhere.
- '-Wno-unused-parameter',
- # Don't warn about the "struct foo f = {0};" initialization
- # pattern.
- '-Wno-missing-field-initializers',
- ]
- }],
],
},
'target_conditions': [
« 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