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

Issue 1246103007: Enable C4018 globally for the GN build, and disable per-target. (Closed)

Created:
5 years, 5 months ago by Peter Kasting
Modified:
5 years, 4 months ago
Reviewers:
brettw, Elliot Glaysher
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable C4018 globally for the GN build, and disable per-target. This matches what the GYP build does. BUG=398202 TEST=none Committed: https://crrev.com/d408e1965f8e03629738039289ab7779c42a318c Cr-Commit-Position: refs/heads/master@{#340590}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix leveldatabase #

Patch Set 3 : Build fix #

Patch Set 4 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M build/config/compiler/BUILD.gn View 1 chunk +0 lines, -5 lines 0 comments Download
M components/filesystem/file_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/leveldatabase/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/libexif/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libxml/BUILD.gn View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/mesa/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/protobuf/BUILD.gn View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/qcms/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/re2/BUILD.gn View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/snappy/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
Peter Kasting
"gn gen" seemed to work, so I presumably didn't botch the syntax too badly? Have ...
5 years, 5 months ago (2015-07-22 00:43:38 UTC) #2
brettw
the win8 bot is actually GN in case you didn't realize (confusing name). LGTM https://codereview.chromium.org/1246103007/diff/1/third_party/leveldatabase/BUILD.gn ...
5 years, 5 months ago (2015-07-22 04:30:25 UTC) #3
Peter Kasting
https://codereview.chromium.org/1246103007/diff/1/third_party/leveldatabase/BUILD.gn File third_party/leveldatabase/BUILD.gn (right): https://codereview.chromium.org/1246103007/diff/1/third_party/leveldatabase/BUILD.gn#newcode121 third_party/leveldatabase/BUILD.gn:121: cflags = [ "/wd4018" ] # Signed/unsigned mismatch in ...
5 years, 5 months ago (2015-07-22 05:58:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246103007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246103007/20001
5 years, 5 months ago (2015-07-23 00:07:35 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/19723)
5 years, 5 months ago (2015-07-23 01:19:10 UTC) #9
Peter Kasting
+erg for components/filesystem/file_impl.cc -- is this warning fix correct? I'm not sure what INT was ...
5 years, 4 months ago (2015-07-27 20:19:19 UTC) #11
Elliot Glaysher
On 2015/07/27 20:19:19, Peter Kasting wrote: > +erg for components/filesystem/file_impl.cc -- is this warning fix ...
5 years, 4 months ago (2015-07-27 20:35:29 UTC) #12
Peter Kasting
On 2015/07/27 20:35:29, Elliot Glaysher wrote: > On 2015/07/27 20:19:19, Peter Kasting wrote: > > ...
5 years, 4 months ago (2015-07-27 20:41:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246103007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246103007/60001
5 years, 4 months ago (2015-07-27 20:42:12 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-07-27 22:54:57 UTC) #17
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d408e1965f8e03629738039289ab7779c42a318c Cr-Commit-Position: refs/heads/master@{#340590}
5 years, 4 months ago (2015-07-27 22:55:55 UTC) #18
ccameron
5 years, 4 months ago (2015-07-28 01:04:51 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1257583007/ by ccameron@chromium.org.

The reason for reverting is: Speculative revert based on windows gn bots failing
with

http://build.chromium.org/p/chromium.win/builders/Win8%20GN%20%28dbg%29/build...

FAILED: ninja -t msvc -e environment.x64 -- E:\b\build\goma/gomacc.exe
"E:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64/cl.exe" /nologo
/showIncludes /FC @obj/base/base/precompile.c.obj.rsp /c
../../build/precompile.cc /Foobj/base/base/precompile.c.obj
/Fdobj/base/base_c.pdb
e:\b\build\slave\win_x64_gn__dbg_\build\src\build\precompile.cc(8) : error
C2220: warning treated as error - no 'object' file generated
e:\b\build\slave\win_x64_gn__dbg_\build\src\build\precompile.cc(8) : warning
C4206: nonstandard extension used : translation unit is empty
ninja: build stopped: subcommand failed.

In theory this warning shouldn't have affected other warnings, but there are no
other clear candidates..

Powered by Google App Engine
This is Rietveld 408576698