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

Issue 692313002: Disable -Wextra for all toolchains. (Closed)

Created:
6 years, 1 month ago by Chris Masone
Modified:
6 years, 1 month ago
Reviewers:
Nico, brettw, scottmg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Disable -Wextra for all toolchains. On clang, this flag is a no-op, and Blink code has a long way to go to be clean with respect to these warnings on GCC toolchains. The GYP build has never had -Wextra set, so let's just make GN in line with that. BUG=424334 TEST=try bots TBR=brettw Committed: https://crrev.com/c9aa95f7873dc969f35cded9b4f2e2692af91b18 Cr-Commit-Position: refs/heads/master@{#302693}

Patch Set 1 #

Total comments: 1

Patch Set 2 : switch to disabling -Wextra altogether #

Total comments: 2

Patch Set 3 : Add -Wno-type-limits to GYP build #

Total comments: 1

Patch Set 4 : get rid of -Wno-type-limits altogether #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M build/config/compiler/BUILD.gn View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 21 (3 generated)
Chris Masone
Brett, can you give this a look?
6 years, 1 month ago (2014-11-03 18:54:45 UTC) #3
Nico
https://codereview.chromium.org/692313002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/692313002/diff/1/build/config/compiler/BUILD.gn#newcode532 build/config/compiler/BUILD.gn:532: "-Wextra", I'd just remove this. -Wextra is a no-op ...
6 years, 1 month ago (2014-11-03 18:58:42 UTC) #4
brettw
Is this in sync with the GYP build?
6 years, 1 month ago (2014-11-03 19:00:37 UTC) #5
Chris Masone
As Nico says, the GYP build doesn't set -Wextra at all, and scottmg said in ...
6 years, 1 month ago (2014-11-03 19:02:41 UTC) #6
Chris Masone
OK, PTAL
6 years, 1 month ago (2014-11-03 20:17:37 UTC) #7
Nico
https://codereview.chromium.org/692313002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/692313002/diff/20001/build/config/compiler/BUILD.gn#newcode754 build/config/compiler/BUILD.gn:754: "-Wno-type-limits", If you want to keep this, I'd add ...
6 years, 1 month ago (2014-11-03 20:30:10 UTC) #8
Chris Masone
On 2014/11/03 20:30:10, Nico wrote: > https://codereview.chromium.org/692313002/diff/20001/build/config/compiler/BUILD.gn > File build/config/compiler/BUILD.gn (right): > > https://codereview.chromium.org/692313002/diff/20001/build/config/compiler/BUILD.gn#newcode754 > ...
6 years, 1 month ago (2014-11-03 20:34:14 UTC) #9
Chris Masone
https://codereview.chromium.org/692313002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/692313002/diff/20001/build/config/compiler/BUILD.gn#newcode754 build/config/compiler/BUILD.gn:754: "-Wno-type-limits", On 2014/11/03 20:30:10, Nico wrote: > If you ...
6 years, 1 month ago (2014-11-03 20:38:50 UTC) #10
Nico
https://codereview.chromium.org/692313002/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/692313002/diff/40001/build/common.gypi#newcode3555 build/common.gypi:3555: '-Wno-type-limits', You only want to add this for gcc ...
6 years, 1 month ago (2014-11-03 20:42:38 UTC) #11
Chris Masone
removed any reference to type-limits. Knowledge recorded in https://code.google.com/p/chromium/issues/detail?id=429804 for posterity
6 years, 1 month ago (2014-11-03 20:56:12 UTC) #12
Nico
lgtm
6 years, 1 month ago (2014-11-03 20:56:44 UTC) #13
Chris Masone
On 2014/11/03 20:56:44, Nico wrote: > lgtm Brett, can I haz an OWNER LGTM?
6 years, 1 month ago (2014-11-03 21:30:33 UTC) #14
Chris Masone
On 2014/11/03 21:30:33, Chris Masone wrote: > On 2014/11/03 20:56:44, Nico wrote: > > lgtm ...
6 years, 1 month ago (2014-11-04 21:47:31 UTC) #15
Nico
On 2014/11/04 21:47:31, Chris Masone wrote: > On 2014/11/03 21:30:33, Chris Masone wrote: > > ...
6 years, 1 month ago (2014-11-04 21:53:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692313002/60001
6 years, 1 month ago (2014-11-04 21:56:10 UTC) #18
brettw
lgtm
6 years, 1 month ago (2014-11-04 22:32:36 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-04 22:44:55 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 22:46:36 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c9aa95f7873dc969f35cded9b4f2e2692af91b18
Cr-Commit-Position: refs/heads/master@{#302693}

Powered by Google App Engine
This is Rietveld 408576698