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

Issue 1551753002: Build third-party code with -Wall, build chromium_code with -Wextra on Linux (Closed)

Created:
4 years, 12 months ago by Nico
Modified:
4 years, 11 months ago
Reviewers:
Lei Zhang, dcheng
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Build third-party code with -Wall, build chromium_code with -Wextra on Linux clang/win already passes -Wall for third-party code, and it finds useful things. Do this on other platforms too. Build chromium_code with -Wextra. This is already done on Mac and clang/win, let the other platforms be consistent with that. Landed in parts here: https://codereview.chromium.org/1557733002 (prepare code) https://codereview.chromium.org/1555843002 (-Wall for 3rd-party on mac and ios) https://codereview.chromium.org/1553963002 (gpu build fix for -Wall) https://codereview.chromium.org/1552863004 (-Wextra for chromium_code) https://codereview.chromium.org/1555893002/ (-Wall for linux etc) BUG=573250

Patch Set 1 #

Patch Set 2 : macworks #

Patch Set 3 : build on linux too #

Patch Set 4 : chromeos #

Patch Set 5 : tweak (cast builds, linux different, mac release) #

Patch Set 6 : android #

Patch Set 7 : ocmockmac #

Patch Set 8 : . #

Patch Set 9 : linux dbg #

Patch Set 10 : wextra only with clang #

Patch Set 11 : rebase, and no -Wextra for pnacl-clang in gn for now #

Total comments: 3

Patch Set 12 : harfbuzz-mac #

Patch Set 13 : android gn #

Patch Set 14 : rebase; more !nacl #

Patch Set 15 : undo jni_generator change after agrieve fix #

Total comments: 10

Patch Set 16 : thestig #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -63 lines) Patch
M android_webview/native/input_stream_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M base/allocator/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M base/allocator/allocator.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M base/android/context_utils.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M base/android/context_utils.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -13 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/android/data_usage/tab_data_use_entry_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/accessibility_features_apitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/crash/linux/dump_info.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/system/statistics_provider.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M components/crash/content/app/breakpad_linux.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/android/android_history_types.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/renderer/plugin/plugin.gypi View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/android/java/gin_java_method_invocation_helper.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/java/gin_java_method_invocation_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/tools/quic/quic_simple_server_stream_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/untrusted/irt_stub/thread_creator.c View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_leb128.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/android_protobuf/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +15 lines, -7 lines 0 comments Download
M third_party/android_protobuf/android_protobuf.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/harfbuzz-ng/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/harfbuzz-ng/src/hb-coretext.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/mach_override/BUILD.gn View 1 2 3 4 2 chunks +19 lines, -1 line 0 comments Download
M third_party/mach_override/mach_override.gyp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/ocmock/BUILD.gn View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/ocmock/ocmock.gyp View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (19 generated)
Nico
Once you land the breakpad change, I can send try jobs for this.
4 years, 11 months ago (2015-12-29 21:27:56 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551753002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551753002/40001
4 years, 11 months ago (2015-12-29 23:16:05 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/2925)
4 years, 11 months ago (2015-12-29 23:36:21 UTC) #7
Nico
ptal at patch set 15, I think this is pretty close to done now. I ...
4 years, 11 months ago (2015-12-30 22:53:26 UTC) #11
dcheng
https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp#newcode294 base/allocator/allocator.gyp:294: # typedefs. Isn't our copy of tcmalloc a fork? ...
4 years, 11 months ago (2015-12-30 23:30:20 UTC) #13
Nico
https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp#newcode294 base/allocator/allocator.gyp:294: # typedefs. On 2015/12/30 23:30:19, dcheng wrote: > Isn't ...
4 years, 11 months ago (2015-12-30 23:53:51 UTC) #14
Lei Zhang
You can probably easily land the non-third-party .cc/.h files in a separate CL, while waiting ...
4 years, 11 months ago (2015-12-30 23:53:59 UTC) #15
dcheng
lgtm
4 years, 11 months ago (2015-12-30 23:54:02 UTC) #16
Lei Zhang
https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp#newcode294 base/allocator/allocator.gyp:294: # typedefs. On 2015/12/30 23:53:51, Nico wrote: > On ...
4 years, 11 months ago (2015-12-31 00:07:37 UTC) #19
Nico
Thanks! https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/1551753002/diff/280001/base/allocator/allocator.gyp#newcode294 base/allocator/allocator.gyp:294: # typedefs. On 2015/12/31 00:07:37, Lei Zhang wrote: ...
4 years, 11 months ago (2015-12-31 02:44:17 UTC) #20
Lei Zhang
https://codereview.chromium.org/1551753002/diff/280001/third_party/ocmock/BUILD.gn File third_party/ocmock/BUILD.gn (right): https://codereview.chromium.org/1551753002/diff/280001/third_party/ocmock/BUILD.gn#newcode13 third_party/ocmock/BUILD.gn:13: cflags = [ "-Wno-semicolon-before-method-body" ] On 2015/12/31 02:44:17, Nico ...
4 years, 11 months ago (2015-12-31 02:56:59 UTC) #21
Lei Zhang
and lgtm!
4 years, 11 months ago (2015-12-31 02:57:19 UTC) #22
Nico
4 years, 11 months ago (2015-12-31 03:05:58 UTC) #23
https://codereview.chromium.org/1551753002/diff/280001/third_party/ocmock/BUI...
File third_party/ocmock/BUILD.gn (right):

https://codereview.chromium.org/1551753002/diff/280001/third_party/ocmock/BUI...
third_party/ocmock/BUILD.gn:13: cflags = [ "-Wno-semicolon-before-method-body" ]
On 2015/12/31 02:56:59, Lei Zhang wrote:
> On 2015/12/31 02:44:17, Nico wrote:
> > On 2015/12/31 00:07:37, Lei Zhang wrote:
> > > Should this have an "if (is_clang)", like
> third_party/mach_override/BUILD.gn?
> > 
> > Doesn't matter either way, this is only build on is_mac || is_ios (see line
> 5),
> > and these always use clang
> 
> Shouldn't mach_override have the same assertion and drop the if, since it's
mac
> only as well? Just asking for consistency.

I agree. I'll send a separate CL for that.

Powered by Google App Engine
This is Rietveld 408576698